Click here to Skip to main content
16,008,750 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralPassing message to thread Pin
Samrah Saulat Mirza28-Jun-03 5:51
Samrah Saulat Mirza28-Jun-03 5:51 
GeneralRe: Passing message to thread Pin
Nitron28-Jun-03 6:02
Nitron28-Jun-03 6:02 
GeneralRe: Passing message to thread Pin
Shah Shehpori28-Jun-03 6:56
sussShah Shehpori28-Jun-03 6:56 
GeneralRe: Passing message to thread Pin
valikac28-Jun-03 6:53
valikac28-Jun-03 6:53 
GeneralRe: Passing message to thread Pin
Shah Shehpori28-Jun-03 6:59
sussShah Shehpori28-Jun-03 6:59 
GeneralRe: Passing message to thread Pin
valikac28-Jun-03 7:46
valikac28-Jun-03 7:46 
GeneralRe: Passing message to thread Pin
Peter Weyzen28-Jun-03 17:26
Peter Weyzen28-Jun-03 17:26 
GeneralRe: Passing message to thread Pin
cmk28-Jun-03 18:11
cmk28-Jun-03 18:11 
Read the docs for PostThreadMessage().
It will explain how to create a message queue for your thread A (dead easy).

Threads B, C can then call PostThreadMessage(thread_A, MY_STR_MSG, char*, length).

Thread A (even though it doesn't have a window) can use the normal window GetMessage() loop to pull the strings from the message queue.

Probably want to alloc memory for strings in threads B,C and delete in thread A.


...cmk
QuestionHow to set the position of a progress bar Pin
FlyingDancer28-Jun-03 3:54
FlyingDancer28-Jun-03 3:54 
AnswerRe: How to set the position of a progress bar Pin
Michael Dunn28-Jun-03 5:20
sitebuilderMichael Dunn28-Jun-03 5:20 
GeneralRe: How to set the position of a progress bar Pin
FlyingDancer29-Jun-03 15:35
FlyingDancer29-Jun-03 15:35 
GeneralRe: How to set the position of a progress bar Pin
FlyingDancer29-Jun-03 18:37
FlyingDancer29-Jun-03 18:37 
Questionhow to play *.ani file in MFC? Pin
dxhdxh28-Jun-03 2:44
dxhdxh28-Jun-03 2:44 
GeneralAttn: Robert Brault Pin
gweather28-Jun-03 2:03
gweather28-Jun-03 2:03 
GeneralSubclassed Control Pin
Hesham Amin28-Jun-03 1:38
Hesham Amin28-Jun-03 1:38 
GeneralRe: Subclassed Control Pin
MAAK29-Jun-03 12:07
MAAK29-Jun-03 12:07 
GeneralRe: Subclassed Control Pin
Hesham Amin29-Jun-03 22:19
Hesham Amin29-Jun-03 22:19 
GeneralGeneric serial port interface Pin
NeoFeng28-Jun-03 0:03
NeoFeng28-Jun-03 0:03 
GeneralRe: Generic serial port interface Pin
Trollslayer28-Jun-03 5:25
mentorTrollslayer28-Jun-03 5:25 
QuestionSomething like #error but without error? Pin
Dominik Reichl27-Jun-03 20:56
Dominik Reichl27-Jun-03 20:56 
AnswerRe: Something like #error but without error? Pin
Ryan Binns27-Jun-03 23:24
Ryan Binns27-Jun-03 23:24 
GeneralRe: Something like #error but without error? Pin
Dominik Reichl27-Jun-03 23:32
Dominik Reichl27-Jun-03 23:32 
GeneralRe: Something like #error but without error? Pin
Ryan Binns28-Jun-03 0:10
Ryan Binns28-Jun-03 0:10 
QuestionDatabase? Pin
DaveE9th27-Jun-03 19:40
DaveE9th27-Jun-03 19:40 
AnswerRe: Database? Pin
Anonymous29-Jun-03 5:20
Anonymous29-Jun-03 5:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.