?
Solved

MsgWaitForMultipleObjects

Posted on 2002-04-15
2
Medium Priority
?
469 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 800 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
In this post we will learn different types of Android Layout and some basics of an Android App.
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.
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses
Course of the Month11 days, 18 hours left to enroll

752 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