Hi Experts:
I have a single thread ActiveX which has a Method_A and Event_A. The Event_A will be triggered after Method_A is called and does some work.
In my MFC application, I call the ActiveX Method_A in the source code of Button_1 (of the GUI) and wait for the Event_A in a message loop without returning to the MFC main GUI's message loop. However, I never get the Event_A from Method_A. It seems there is a dead loop inside.
But if I exit the Button_1 source code without waiting and just return to the MFC main GUI message loop, then Event_A can be triggered and received immediately without any problem.
How can I get the Event_A without exiting the Button_1 and returning to the MFC main GUI message loop? I have been puzzled by this issue. Could you please help?
Have a nice weekend!
Rob