Thank you for your reply, but both of you misunderstand me. I have received an EXE file, it's used to open my files and display contents of the files but I cannot GET THE TEXT OF CONTENTS. I'v tried to use Spy++ to get the "window handle" and create a new CEdit from this handle but it doesn't work. Please tell me how to solve this problem.