468,484 Members | 1,675 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,484 developers. It's quick & easy.

Problems on ActiveX Messages / Events of VC++ 6.0 programming

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
Mar 28 '08 #1
0 889

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by Zawa | last post: by
1 post views Thread by Anand Kale | last post: by
3 posts views Thread by Weston Fryatt | last post: by
1 post views Thread by =?Utf-8?B?SmltIFdhbHNo?= | last post: by
9 posts views Thread by =?Utf-8?B?SG93YXJkIFNtaXRo?= | last post: by
2 posts views Thread by gieforce | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.