MFC Question:

Download Job Interview Questions and Answers PDF

How can update edit control data of an executing application from other application?

MFC Interview Question
MFC Interview Question

Answer:

First, need to find the handle of the Control by using some API like EnumWindows and enumerrating all windows and checking for the text of the window by GetWindowTExt.
Once, handle of the target control has been identified, SendMessage can be used to send appropriate message to the control. like WM_SETTEXT can be sent to change text of window, etc...

Download MFC Interview Questions And Answers PDF

Previous QuestionNext Question
If application hangs while SendMessage is waiting for the result, how you handle it?What is stack size in win32 program?