Click here to Skip to main content
16,017,333 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem with "Create a FrameWnd inside a thread" Pin
HumanOsc15-Aug-05 4:51
HumanOsc15-Aug-05 4:51 
GeneralRe: Problem with "Create a FrameWnd inside a thread" Pin
Stephan Pilz15-Aug-05 20:08
Stephan Pilz15-Aug-05 20:08 
GeneralRe: Problem with "Create a FrameWnd inside a thread" Pin
Stephan Pilz15-Aug-05 20:52
Stephan Pilz15-Aug-05 20:52 
GeneralRe: Problem with "Create a FrameWnd inside a thread" Pin
Sheng Jiang 蒋晟15-Aug-05 15:49
Sheng Jiang 蒋晟15-Aug-05 15:49 
GeneralRe: Problem with "Create a FrameWnd inside a thread" Pin
Stephan Pilz15-Aug-05 20:14
Stephan Pilz15-Aug-05 20:14 
GeneralRe: Problem with "Create a FrameWnd inside a thread" Pin
Sheng Jiang 蒋晟15-Aug-05 20:20
Sheng Jiang 蒋晟15-Aug-05 20:20 
GeneralRe: Problem with "Create a FrameWnd inside a thread" Pin
Stephan Pilz15-Aug-05 20:51
Stephan Pilz15-Aug-05 20:51 
GeneralRe: Problem with "Create a FrameWnd inside a thread" Pin
HumanOsc16-Aug-05 1:22
HumanOsc16-Aug-05 1:22 
Hello again...

My solution is based on the great Articel from Joseph M. Newcomer:


http://www.codeproject.com/threads/usingworkerthreads.asp[^]

This is a very nice Introduction about worker threads.

Be carefull about SendMessage, it can also produce unexpected situations like a deadlock from your app...

Always prever the use of PostMessage to provide a safe gui access.
But Sometimes it's recommend (before or after the end of a worker thread) to get sure thats no (old) messages exists in the message queue.
In this situations use PeekMessage, GetMessage and DispatchMessage in main thread to remove (process) all old Message from Queue...

Best regards... Big Grin | :-D
GeneralLocation of strcmp Pin
rottencheese15-Aug-05 2:17
rottencheese15-Aug-05 2:17 
GeneralRe: Location of strcmp Pin
Chris Losinger15-Aug-05 2:28
professionalChris Losinger15-Aug-05 2:28 
GeneralRe: Location of strcmp Pin
Tim Smith15-Aug-05 3:40
Tim Smith15-Aug-05 3:40 
GeneralTrial Licensing Pin
Developer567815-Aug-05 2:14
Developer567815-Aug-05 2:14 
GeneralRe: Trial Licensing Pin
Chris Losinger15-Aug-05 2:23
professionalChris Losinger15-Aug-05 2:23 
GeneralRe: Trial Licensing Pin
Developer567815-Aug-05 2:48
Developer567815-Aug-05 2:48 
GeneralRe: Trial Licensing Pin
khan++15-Aug-05 2:25
khan++15-Aug-05 2:25 
GeneralRe: Trial Licensing Pin
Developer567815-Aug-05 2:44
Developer567815-Aug-05 2:44 
GeneralRe: Trial Licensing Pin
khan++15-Aug-05 2:52
khan++15-Aug-05 2:52 
GeneralRe: Trial Licensing Pin
BlackDice15-Aug-05 3:12
BlackDice15-Aug-05 3:12 
GeneralRe: Trial Licensing Pin
Developer567815-Aug-05 19:50
Developer567815-Aug-05 19:50 
GeneralRe: Trial Licensing Pin
David Crow15-Aug-05 3:14
David Crow15-Aug-05 3:14 
GeneralRe: Trial Licensing Pin
Developer567815-Aug-05 19:46
Developer567815-Aug-05 19:46 
GeneralRe: Trial Licensing Pin
David Crow16-Aug-05 2:54
David Crow16-Aug-05 2:54 
GeneralRe: Trial Licensing Pin
Bob Stanneveld15-Aug-05 6:07
Bob Stanneveld15-Aug-05 6:07 
QuestionHow to show animation(GIF files)? Pin
eli1502197915-Aug-05 1:51
eli1502197915-Aug-05 1:51 
AnswerRe: How to show animation(GIF files)? Pin
khan++15-Aug-05 2:12
khan++15-Aug-05 2:12 

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.