Click here to Skip to main content
15,888,610 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow to save audio [modified] Pin
ramyasangeet30-May-06 21:50
ramyasangeet30-May-06 21:50 
AnswerRe: how to save audio [modified] Pin
Hamid_RT30-May-06 22:20
Hamid_RT30-May-06 22:20 
QuestionSplitter Window Pin
Member 303984330-May-06 21:47
Member 303984330-May-06 21:47 
AnswerRe: Splitter Window Pin
NiceNaidu30-May-06 22:54
NiceNaidu30-May-06 22:54 
GeneralRe: Splitter Window Pin
Member 303984331-May-06 18:03
Member 303984331-May-06 18:03 
QuestionSocket Vs Port - using firwall (amended) Pin
zahid_ash30-May-06 21:24
zahid_ash30-May-06 21:24 
AnswerRe: Socket Vs Port - using firwall (amended) Pin
NiceNaidu30-May-06 23:00
NiceNaidu30-May-06 23:00 
AnswerRe: Socket Vs Port - using firwall (amended) Pin
ThatsAlok31-May-06 0:08
ThatsAlok31-May-06 0:08 
QuestionDisplaying Message Box while program(code) continues [modified] Pin
KongHL30-May-06 21:23
KongHL30-May-06 21:23 
AnswerRe: Displaying Message Box while program(code) continues [modified] Pin
Cedric Moonen30-May-06 21:38
Cedric Moonen30-May-06 21:38 
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 

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.