Click here to Skip to main content
15,914,225 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: An multithread question. Pin
Zac Howland28-Aug-06 4:38
Zac Howland28-Aug-06 4:38 
cwyang wrote:
I want the Go() function could do the "PeekMessage"
for the main window.


This is a VERY bad practice. You do NOT want to keep making message loops in your main thread. It makes your code overly complicated, impossible to maintain, and royal pain to debug. If you have a section of code that will be doing enough processing to block your UI thread (aka, your main thread), you do want to us a worker thread.

If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week

Zac

QuestionOpen Office SDK [modified] Pin
Kamen28-Aug-06 1:07
Kamen28-Aug-06 1:07 
AnswerRe: Open Office SDK Pin
Dave Calkins28-Aug-06 7:59
Dave Calkins28-Aug-06 7:59 
QuestionDifferece between static library and shared DLL [modified] Pin
Anu_Bala28-Aug-06 0:10
Anu_Bala28-Aug-06 0:10 
AnswerRe: Differece between static library and shared DLL Pin
Emilio Garavaglia28-Aug-06 1:36
Emilio Garavaglia28-Aug-06 1:36 
AnswerRe: Differece between static library and shared DLL Pin
Hamid_RT28-Aug-06 7:55
Hamid_RT28-Aug-06 7:55 
QuestionSyncronization question Pin
Kiran Pinjala27-Aug-06 23:59
Kiran Pinjala27-Aug-06 23:59 
AnswerRe: Syncronization question Pin
kakan28-Aug-06 0:51
professionalkakan28-Aug-06 0:51 
QuestionHow to prevent drag and drop Pin
huynhnb27-Aug-06 23:22
huynhnb27-Aug-06 23:22 
QuestionSearching in SDK Pin
shadrach_india27-Aug-06 23:13
shadrach_india27-Aug-06 23:13 
AnswerRe: Searching in SDK Pin
Prakash Nadar27-Aug-06 23:22
Prakash Nadar27-Aug-06 23:22 
GeneralRe: Searching in SDK Pin
ThatsAlok28-Aug-06 0:50
ThatsAlok28-Aug-06 0:50 
AnswerRe: Searching in SDK Pin
toxcct27-Aug-06 23:25
toxcct27-Aug-06 23:25 
GeneralRe: Searching in SDK Pin
shadrach_india27-Aug-06 23:33
shadrach_india27-Aug-06 23:33 
GeneralRe: Searching in SDK Pin
toxcct27-Aug-06 23:39
toxcct27-Aug-06 23:39 
GeneralRe: Searching in SDK [modified] Pin
shadrach_india27-Aug-06 23:44
shadrach_india27-Aug-06 23:44 
GeneralRe: Searching in SDK [modified] Pin
toxcct27-Aug-06 23:46
toxcct27-Aug-06 23:46 
GeneralRe: Searching in SDK Pin
shadrach_india28-Aug-06 0:12
shadrach_india28-Aug-06 0:12 
GeneralRe: Searching in SDK Pin
shadrach_india28-Aug-06 0:42
shadrach_india28-Aug-06 0:42 
GeneralRe: Searching in SDK Pin
David Crow28-Aug-06 3:55
David Crow28-Aug-06 3:55 
QuestionMS VS 2005 C++ Issue Pin
Programm3r27-Aug-06 22:32
Programm3r27-Aug-06 22:32 
AnswerRe: MS VS 2005 C++ Issue Pin
Dave Calkins28-Aug-06 5:10
Dave Calkins28-Aug-06 5:10 
QuestionRe: MS VS 2005 C++ Issue Pin
Hamid_RT28-Aug-06 8:10
Hamid_RT28-Aug-06 8:10 
QuestionCSortListCtrl Line Color Pin
mikobi27-Aug-06 21:31
mikobi27-Aug-06 21:31 
AnswerRe: CSortListCtrl Line Color Pin
_AnsHUMAN_ 27-Aug-06 22:00
_AnsHUMAN_ 27-Aug-06 22:00 

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.