Click here to Skip to main content
15,918,808 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Serialization Pin
bob1697228-Jun-06 10:24
bob1697228-Jun-06 10:24 
GeneralRe: Serialization [modified] Pin
ovidiucucu29-Jun-06 2:30
ovidiucucu29-Jun-06 2:30 
QuestionPeeking into the message queue of another thread Pin
Phil.Benson27-Jun-06 23:54
professionalPhil.Benson27-Jun-06 23:54 
AnswerRe: Peeking into the message queue of another thread Pin
Sarath C28-Jun-06 0:47
Sarath C28-Jun-06 0:47 
GeneralRe: Peeking into the message queue of another thread Pin
Phil.Benson28-Jun-06 1:36
professionalPhil.Benson28-Jun-06 1:36 
GeneralRe: Peeking into the message queue of another thread [modified] Pin
Justin Tay28-Jun-06 2:39
Justin Tay28-Jun-06 2:39 
GeneralRe: Peeking into the message queue of another thread Pin
Phil.Benson28-Jun-06 2:54
professionalPhil.Benson28-Jun-06 2:54 
GeneralRe: Peeking into the message queue of another thread [modified] Pin
Justin Tay28-Jun-06 3:02
Justin Tay28-Jun-06 3:02 
You can't get your main thread to redraw as it has to wait for CDaoDatabase.Execute(...) to return.

You got the idea upside down. The worker thread is the one that should perform your lengthy processing ie. CDaoDatabase.Execute(...) should be in the worker thread and not the other way around. If you only wish to have one query execute at a time you can always disable the main window (and maybe pop up a progress bar window - one of those in which the progress just bounces left and right) before you start the thread. And re-enable the window (and kill the progress bar window) when the worker thread posts a message to the main thread that the execution has completed.

-- modified at 9:03 Wednesday 28th June, 2006
GeneralRe: Peeking into the message queue of another thread Pin
Phil.Benson28-Jun-06 3:29
professionalPhil.Benson28-Jun-06 3:29 
GeneralRe: Peeking into the message queue of another thread Pin
Justin Tay28-Jun-06 3:38
Justin Tay28-Jun-06 3:38 
GeneralRe: Peeking into the message queue of another thread Pin
Phil.Benson28-Jun-06 5:33
professionalPhil.Benson28-Jun-06 5:33 
QuestionDatabase error in C++ Pin
aSoundMind27-Jun-06 23:29
aSoundMind27-Jun-06 23:29 
Questionanother kind of linker error Pin
Desmo1627-Jun-06 23:25
Desmo1627-Jun-06 23:25 
AnswerRe: another kind of linker error Pin
_AnsHUMAN_ 27-Jun-06 23:28
_AnsHUMAN_ 27-Jun-06 23:28 
AnswerRe: another kind of linker error Pin
Cedric Moonen27-Jun-06 23:33
Cedric Moonen27-Jun-06 23:33 
AnswerRe: another kind of linker error Pin
Sarath C27-Jun-06 23:41
Sarath C27-Jun-06 23:41 
QuestionMessageBox French Pin
dungpapai27-Jun-06 23:04
dungpapai27-Jun-06 23:04 
AnswerRe: MessageBox French Pin
Cedric Moonen27-Jun-06 23:21
Cedric Moonen27-Jun-06 23:21 
AnswerRe: MessageBox French Pin
Sarath C27-Jun-06 23:26
Sarath C27-Jun-06 23:26 
AnswerRe: MessageBox French Pin
FarPointer27-Jun-06 23:26
FarPointer27-Jun-06 23:26 
QuestionHTML Help Workshop from the Command Line [modified] Pin
Joel Holdsworth27-Jun-06 22:35
Joel Holdsworth27-Jun-06 22:35 
AnswerRe: HTML Help Workshop from the Command Line Pin
Sarath C28-Jun-06 1:07
Sarath C28-Jun-06 1:07 
QuestionRe: HTML Help Workshop from the Command Line [modified] Pin
Joel Holdsworth28-Jun-06 2:31
Joel Holdsworth28-Jun-06 2:31 
AnswerRe: HTML Help Workshop from the Command Line Pin
S Douglas28-Jun-06 12:03
professionalS Douglas28-Jun-06 12:03 
GeneralRe: HTML Help Workshop from the Command Line Pin
Joel Holdsworth28-Jun-06 12:20
Joel Holdsworth28-Jun-06 12: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.