Solved

MsgWaitForMultipleObjects

Posted on 2002-04-15
2
449 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

749 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