Solved

MsgWaitForMultipleObjects

Posted on 2002-04-15
2
408 Views
Last Modified: 2013-11-20
   Hi guys,
I have application *.exe. There I have MsgWaitForMultipleObjects() method call which works fine. It respond correctly and return values. Now I’m trying to do the same with ATL web control and because of some reason MsgWaitForMultipleObjects is not return the value, it just hang there. So I would like to know:
 Is it possible to implement MsgWaitForMultipleObjects in ATL web control?
 If so how I could implement it?
 If not, how I could work around it?

Regards,
0
Comment
Question by:gee
2 Comments
 
LVL 49

Accepted Solution

by:
DanRollins earned 200 total points
Comment Utility
MsgWaitForMultipleObjects is a Win32 API call, so it seems like it should work just as well for an ATL program as for an MFC program.

>>because of some reason MsgWaitForMultipleObjects is not
>>return the value, it just hang there
Have you tried setting a timeput value (fouth parameter)

I see in the documentation for MsgWaitForMultipleObjects, that if your program calls PeekMessage, then things won't work as expected.  Perhaps your ATL control is doing that somewhere.  

Try using MsgWaitForMultipleObjectsEx with  MWMO_INPUTAVAILABLE in the nFlags parameter.

-- Dan
0
 

Author Comment

by:gee
Comment Utility
Thanks,
I found one point which was crusial.

Regards
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Need to retreive data from .TFS file exported by DVR 8 166
maxBlock challenge 30 99
scoreUp challenge 14 48
mapBully challenge 6 88
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now