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
Solved

MsgWaitForMultipleObjects

Posted on 2002-04-15
2
441 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Prevent this page from creating additional dialogs. 3 607
Doc'in system (example?) BA 7 115
sum67 challenge 35 107
JQuery serialize and unserialize 8 134
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…
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.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

809 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