Solved

MsgWaitForMultipleObjects

Posted on 2002-04-15
2
423 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
ID: 6942991
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
ID: 6943080
Thanks,
I found one point which was crusial.

Regards
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

896 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

11 Experts available now in Live!

Get 1:1 Help Now