Click here to Skip to main content
15,889,096 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Displaying Message Box while program(code) continues [modified] Pin
KongHL30-May-06 21:57
KongHL30-May-06 21:57 
GeneralRe: Displaying Message Box while program(code) continues [modified] Pin
_anil_30-May-06 22:16
_anil_30-May-06 22:16 
GeneralRe: Displaying Message Box while program(code) continues [modified] Pin
toxcct1-Jun-06 23:06
toxcct1-Jun-06 23:06 
GeneralRe: Displaying Message Box while program(code) continues [modified] Pin
_anil_1-Jun-06 23:21
_anil_1-Jun-06 23:21 
Yes you are rightSmile | :) , Its a bad idea, depending on the situation.
But the programmer know what he wants, and aware of the conditions. if the condition is according to you then we can use thread instead.

But I think still I can make it to work.
<code>
void OnShowWindow(){
  // here I set timer
  SetTimer(....);

 // Then the database connection
 // Its long enough 1 sec 
 // problem .....

  return;
}
</code>


second case
<code>
void OnShowWindow(){
  // Then the database connection
 // Its long enough 1 sec 


  // here I set timer
  SetTimer(....);  // less chance of problem
  return;
}
</code>

It depends on when you set the timer.
But I still agree with you that its a bad idea.
But is one of the solution depending on the situation.

Regards
Anil

-- modified at 5:25 Friday 2nd June, 2006
AnswerRe: Displaying Message Box while program(code) continues [modified] Pin
Ștefan-Mihai MOGA30-May-06 21:38
professionalȘtefan-Mihai MOGA30-May-06 21:38 
AnswerRe: Displaying Message Box while program(code) continues [modified] Pin
Stephen Hewitt30-May-06 22:09
Stephen Hewitt30-May-06 22:09 
GeneralRe: Displaying Message Box while program(code) continues [modified] Pin
KongHL30-May-06 21:44
KongHL30-May-06 21:44 
GeneralRe: Displaying Message Box while program(code) continues Pin
ThatsAlok31-May-06 0:03
ThatsAlok31-May-06 0:03 
AnswerRe: Displaying Message Box while program(code) continues [modified] Pin
Ștefan-Mihai MOGA30-May-06 22:39
professionalȘtefan-Mihai MOGA30-May-06 22:39 
AnswerRe: Displaying Message Box while program(code) continues [modified] Pin
toxcct31-May-06 0:06
toxcct31-May-06 0:06 
GeneralRe: Displaying Message Box while program(code) continues Pin
ThatsAlok31-May-06 0:15
ThatsAlok31-May-06 0:15 
GeneralRe: Displaying Message Box while program(code) continues Pin
toxcct31-May-06 0:17
toxcct31-May-06 0:17 
GeneralRe: Displaying Message Box while program(code) continues Pin
ThatsAlok31-May-06 0:42
ThatsAlok31-May-06 0:42 
GeneralRe: Displaying Message Box while program(code) continues Pin
toxcct31-May-06 0:58
toxcct31-May-06 0:58 
GeneralRe: Displaying Message Box while program(code) continues Pin
ThatsAlok31-May-06 1:54
ThatsAlok31-May-06 1:54 
QuestionBitmap Planes Pin
Sarath C30-May-06 20:41
Sarath C30-May-06 20:41 
AnswerRe: Bitmap Planes Pin
Steve Echols30-May-06 21:57
Steve Echols30-May-06 21:57 
GeneralRe: Bitmap Planes Pin
NiceNaidu30-May-06 22:52
NiceNaidu30-May-06 22:52 
Question.obj, .lib and .dll? Pin
Polite Programmer30-May-06 20:40
Polite Programmer30-May-06 20:40 
AnswerRe: .obj, .lib and .dll? Pin
Cedric Moonen30-May-06 21:03
Cedric Moonen30-May-06 21:03 
GeneralRe: .obj, .lib and .dll? Pin
NiceNaidu30-May-06 21:19
NiceNaidu30-May-06 21:19 
GeneralRe: .obj, .lib and .dll? Pin
Polite Programmer31-May-06 19:15
Polite Programmer31-May-06 19:15 
QuestionOptional arguments Pin
SWDevil30-May-06 20:39
SWDevil30-May-06 20:39 
AnswerRe: Optional arguments Pin
Nibu babu thomas30-May-06 20:48
Nibu babu thomas30-May-06 20:48 
AnswerRe: Optional arguments Pin
_anil_30-May-06 21:00
_anil_30-May-06 21: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.