Click here to Skip to main content
16,011,685 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MFC Application and Web service Pin
led mike7-May-08 5:05
led mike7-May-08 5:05 
AnswerRe: MFC Application and Web service Pin
Christopher Duncan7-May-08 14:20
Christopher Duncan7-May-08 14:20 
GeneralRe: MFC Application and Web service Pin
BadJerry7-May-08 23:13
BadJerry7-May-08 23:13 
GeneralRe: MFC Application and Web service Pin
Christopher Duncan8-May-08 6:04
Christopher Duncan8-May-08 6:04 
GeneralRe: MFC Application and Web service Pin
BadJerry8-May-08 6:59
BadJerry8-May-08 6:59 
GeneralRe: MFC Application and Web service Pin
Christopher Duncan8-May-08 7:27
Christopher Duncan8-May-08 7:27 
GeneralRe: MFC Application and Web service Pin
BadJerry8-May-08 10:13
BadJerry8-May-08 10:13 
QuestionWM_TIMER & MessageBox Pin
CPallini7-May-08 3:58
mveCPallini7-May-08 3:58 
Surely I'm missing something basical, but I cannot understand why both MessageBoxes are shown by the following code (inside the WndProc of hWnd Window)
case WM_TIMER:
  {
    static int iCounter = 0;
    static int iAnswer = IDCANCEL;
    iCounter++;
    if (iCounter==10)
    {
      iAnswer = MessageBox(hWnd, _T("MsgBox A"), _T("MsgBox A"), MB_YESNO);
    }
    else if ( iCounter==12)
    {
      MessageBox(hWnd, _T("MasgBox B"), _T("MsgBox B"), MB_YESNO);
    }
  }
  break;

I was expecting MsgBox B not shown until MsgBox A termination.
Could someone please clue me in on what's happening? (i.e. plz plz urgent help Big Grin | :-D )

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke


AnswerRe: WM_TIMER & MessageBox Pin
BadJerry7-May-08 4:09
BadJerry7-May-08 4:09 
QuestionRe: WM_TIMER & MessageBox Pin
CPallini7-May-08 4:17
mveCPallini7-May-08 4:17 
AnswerRe: WM_TIMER & MessageBox Pin
BadJerry7-May-08 4:35
BadJerry7-May-08 4:35 
QuestionRe: WM_TIMER & MessageBox Pin
CPallini7-May-08 4:46
mveCPallini7-May-08 4:46 
AnswerRe: WM_TIMER & MessageBox Pin
BadJerry7-May-08 4:53
BadJerry7-May-08 4:53 
GeneralRe: WM_TIMER & MessageBox Pin
CPallini7-May-08 5:05
mveCPallini7-May-08 5:05 
QuestionError compiling dll Pin
alex7867-May-08 3:46
alex7867-May-08 3:46 
AnswerRe: Error compiling dll Pin
Matthew Faithfull7-May-08 3:58
Matthew Faithfull7-May-08 3:58 
GeneralRe: Error compiling dll Pin
alex7867-May-08 18:35
alex7867-May-08 18:35 
QuestionRe: Error compiling dll Pin
David Crow7-May-08 4:02
David Crow7-May-08 4:02 
Questionplz help me write this program Pin
Umair Zuberi7-May-08 3:26
Umair Zuberi7-May-08 3:26 
AnswerRe: plz help me write this program Pin
Maximilien7-May-08 3:30
Maximilien7-May-08 3:30 
GeneralMessage Removed Pin
7-May-08 3:43
Umair Zuberi7-May-08 3:43 
GeneralRe: plz help me write this program Pin
Maximilien7-May-08 3:51
Maximilien7-May-08 3:51 
GeneralMessage Removed Pin
7-May-08 4:08
Umair Zuberi7-May-08 4:08 
QuestionRe: plz help me write this program Pin
David Crow7-May-08 4:34
David Crow7-May-08 4:34 
GeneralMessage Removed Pin
7-May-08 4:42
Umair Zuberi7-May-08 4:42 

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.