Re: pass parameter between main thread and working thread
- From: "Alex Blekhman" <tkfx.REMOVE@xxxxxxxxx>
- Date: Sun, 27 Apr 2008 12:59:50 +0300
<Jose de Alba> wrote:
Question, how do you use PostMessage(...) when working with
non-window apps, (e.g. console apps as in my case?)
Does a main thread in a console have a HWND ?
If you want to use windows messages as a communication mechanism
between threads, then you can create message-only window (search
for "HWND_MESSAGE" in MSDN) in main thread and post messages to it
with `PostMessage' from working threads. You'll need to mainatin
message loop in main thread, too. On start no thread has windows
by default.
HTH
Alex
.
- References:
- Re: pass parameter between main thread and working thread
- From: Mark Salsbery [MVP]
- pass parameter between main thread and working thread
- From: Jose de Alba
- Re: pass parameter between main thread and working thread
- Prev by Date: pass parameter between main thread and working thread
- Next by Date: Porting 32 bit applications to 64 bit in Visual Studio 2005
- Previous by thread: pass parameter between main thread and working thread
- Next by thread: Re: pass parameter between main thread and working thread
- Index(es):
Relevant Pages
|