?
Solved

Microsoft Win32 Message Queues and threads Visual C++

Posted on 2009-02-20
1
Medium Priority
?
1,384 Views
Last Modified: 2012-05-06
Hello,

When I call the Microsoft createThread() function to create a new thread, does the new thread automatically get a message queue, so that I can call getMessage() to retrieve the messages. Or do I have to also open a window within that new thread in order to create a message queue for that new thread.
0
Comment
Question by:cetinski
1 Comment
 
LVL 19

Accepted Solution

by:
LordOfPorts earned 2000 total points
ID: 23749279
The following excerpt from http://msdn.microsoft.com/en-us/library/ms644928(VS.85).aspx#creating_loop might answer your question:

"The system automatically creates a message queue for each thread. If the thread creates one or more windows, a message loop must be provided..."
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone 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

The following diagram presents a diamond class hierarchy: As depicted, diamond inheritance denotes when two classes (e.g., CDerived1 and CDerived2), separately extending a common base class (e.g., CBase), are sub classed simultaneously by a fourt…
In Easy String Encryption Using CryptoAPI in C++ (http://www.experts-exchange.com/viewArticle.jsp?aid=1193) I described how to encrypt text and recommended that the encrypted text be stored as a series of hexadecimal digits -- because cyphertext may…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses

850 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