Click here to Skip to main content
15,897,371 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionUSB communication Pin
mani_ruju15-Feb-06 20:32
mani_ruju15-Feb-06 20:32 
AnswerRe: USB communication Pin
Cedric Moonen15-Feb-06 20:41
Cedric Moonen15-Feb-06 20:41 
QuestionCSingleLock doubt Pin
ledallam15-Feb-06 20:26
ledallam15-Feb-06 20:26 
AnswerRe: CSingleLock doubt Pin
kakan15-Feb-06 20:55
professionalkakan15-Feb-06 20:55 
AnswerRe: CSingleLock doubt Pin
Ryan Binns15-Feb-06 21:59
Ryan Binns15-Feb-06 21:59 
QuestionDialog Problem Pin
Aqueel15-Feb-06 20:17
Aqueel15-Feb-06 20:17 
AnswerRe: Dialog Problem Pin
Cedric Moonen15-Feb-06 20:44
Cedric Moonen15-Feb-06 20:44 
AnswerRe: Dialog Problem Pin
Michael Dunn15-Feb-06 20:54
sitebuilderMichael Dunn15-Feb-06 20:54 
Calling DoModal() from your worker thread probably won't work, and even if you do set up a message queue for the thread, showing the dialog on that thread defeats the purpose of having a worker thread.
The main thread should show the dialog. In OnInitDialog(), start the worker thread and pass it the dialog's HWND. When the thread's work is done, post a message (such as WM_APP) to the dialog so it knows the thread's done and it can close itself.

--Mike--
Visual C++ MVP Cool | :cool:
LINKS~! Ericahist | NEW!! PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
AnswerRe: Dialog Problem Pin
Wim Engberts16-Feb-06 4:16
Wim Engberts16-Feb-06 4:16 
AnswerRe: Dialog Problem Pin
haian244216-Feb-06 14:26
haian244216-Feb-06 14:26 
Questionplease help me Pin
dSolariuM15-Feb-06 20:15
dSolariuM15-Feb-06 20:15 
AnswerRe: please help me Pin
haian244216-Feb-06 14:29
haian244216-Feb-06 14:29 
QuestionHow to process keyboard i/p Pin
RajeshHegde8xp15-Feb-06 19:59
RajeshHegde8xp15-Feb-06 19:59 
AnswerRe: How to process keyboard i/p Pin
Michael Dunn15-Feb-06 20:55
sitebuilderMichael Dunn15-Feb-06 20:55 
AnswerRe: How to process keyboard i/p Pin
ThatsAlok16-Feb-06 3:01
ThatsAlok16-Feb-06 3:01 
GeneralRe: How to process keyboard i/p Pin
RajeshHegde8xp19-Feb-06 18:36
RajeshHegde8xp19-Feb-06 18:36 
QuestionCan I write a drag-and-drop monitor? Pin
Jerry New15-Feb-06 19:59
Jerry New15-Feb-06 19:59 
Questionifstream question Pin
Rassul Yunussov15-Feb-06 18:34
Rassul Yunussov15-Feb-06 18:34 
AnswerRe: ifstream question Pin
mylzw15-Feb-06 19:52
mylzw15-Feb-06 19:52 
GeneralRe: ifstream question Pin
Rassul Yunussov15-Feb-06 20:49
Rassul Yunussov15-Feb-06 20:49 
GeneralRe: ifstream question Pin
mylzw15-Feb-06 22:07
mylzw15-Feb-06 22:07 
AnswerRe: ifstream question Pin
Aqueel15-Feb-06 19:59
Aqueel15-Feb-06 19:59 
GeneralRe: ifstream question Pin
kakan15-Feb-06 20:21
professionalkakan15-Feb-06 20:21 
QuestionIs there any way to get the object pointer through a pointer to its' member variable? Pin
followait15-Feb-06 15:52
followait15-Feb-06 15:52 
AnswerRe: Is there any way to get the object pointer through a pointer to its' member variable? Pin
Nick_Kisialiou15-Feb-06 16:10
Nick_Kisialiou15-Feb-06 16:10 

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.