Click here to Skip to main content
15,912,457 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Cant open MS Access 2000 db Pin
Masaaki Onishi9-Apr-01 6:59
Masaaki Onishi9-Apr-01 6:59 
GeneralRe: Cant open MS Access 2000 db Pin
9-Apr-01 9:55
suss9-Apr-01 9:55 
GeneralRe: Cant open MS Access 2000 db Pin
Ammar9-Apr-01 20:47
Ammar9-Apr-01 20:47 
GeneralRe: Cant open MS Access 2000 db Pin
Ammar10-Apr-01 21:44
Ammar10-Apr-01 21:44 
GeneralControls Pin
Drake Elsari8-Apr-01 19:23
Drake Elsari8-Apr-01 19:23 
GeneralRe: Controls Pin
Christian Graus8-Apr-01 19:36
protectorChristian Graus8-Apr-01 19:36 
GeneralRe: Controls Pin
Erik Funkenbusch8-Apr-01 19:51
Erik Funkenbusch8-Apr-01 19:51 
GeneralDialog box prohibits subsequent MessageBox Pin
KeithW8-Apr-01 17:31
KeithW8-Apr-01 17:31 
I'm a Windows programming beginner, been programming DOS for some time, starting to make the switch and I'm having a niggly bit of trouble trying to display a messagebox immediately after a dialog.DoModal() . Has anyone out there seen this type of behaviour where any messagebox call after a dialog box fails to be displayed? Did I miss something obvious?

The application was created as an simple MFC GUI app.

Your help is much appreciated.

//*********************************************************************
dlg.m_strWarningtext.Format(strMsgBuf);
nResponse = dlg.DoModal();
// >>>>> At this point, any messagebox call returns IDOK without even being displayed.
if (nResponse == IDOK)
{
// Do stuff
sprintf(strMsgBuf,"Messagebox text ");
nRetVal = MessageBox( NULL, (LPCTSTR)strMsgBuf, "Error", MB_OK | MB_ICONERROR );
// >>>>> nRetVal is always == IDOK and the messagebox won't display
}
else if (nResponse == IDCANCEL)
{
// Do stuff
}
//*********************************************************************
GeneralRe: Dialog box prohibits subsequent MessageBox Pin
Christian Graus8-Apr-01 18:48
protectorChristian Graus8-Apr-01 18:48 
GeneralRe: Dialog box prohibits subsequent MessageBox Pin
Masaaki Onishi9-Apr-01 6:53
Masaaki Onishi9-Apr-01 6:53 
GeneralDialog Editor Picture Control Pin
Michael Martin8-Apr-01 17:02
professionalMichael Martin8-Apr-01 17:02 
GeneralRe: Dialog Editor Picture Control Pin
Christian Graus8-Apr-01 18:12
protectorChristian Graus8-Apr-01 18:12 
GeneralCComboBox(Ex) & CListBox Question Pin
Julien8-Apr-01 13:43
Julien8-Apr-01 13:43 
GeneralRe: CComboBox(Ex) & CListBox Question Pin
PJ Arends8-Apr-01 15:22
professionalPJ Arends8-Apr-01 15:22 
GeneralWierd WTL compiling question.... Pin
Christian Graus8-Apr-01 13:08
protectorChristian Graus8-Apr-01 13:08 
GeneralRe: Wierd WTL compiling question.... Pin
Michael Dunn8-Apr-01 15:39
sitebuilderMichael Dunn8-Apr-01 15:39 
GeneralMonitoring audio recording level Pin
Anders Molin8-Apr-01 4:52
professionalAnders Molin8-Apr-01 4:52 
GeneralRe: Monitoring audio recording level Pin
Erik Funkenbusch8-Apr-01 19:56
Erik Funkenbusch8-Apr-01 19:56 
GeneralRe: Monitoring audio recording level Pin
Anders Molin8-Apr-01 21:29
professionalAnders Molin8-Apr-01 21:29 
GeneralRead from file question ... Pin
Hadi Rezaee8-Apr-01 1:40
Hadi Rezaee8-Apr-01 1:40 
GeneralRe: Read from file question ... Pin
AlexMarbus8-Apr-01 3:31
AlexMarbus8-Apr-01 3:31 
GeneralRe: Read from file question ... Pin
Hadi Rezaee8-Apr-01 3:48
Hadi Rezaee8-Apr-01 3:48 
GeneralRe: Read from file question ... Pin
AlexMarbus8-Apr-01 6:08
AlexMarbus8-Apr-01 6:08 
GeneralRe: Read from file question ... Pin
Hadi Rezaee8-Apr-01 6:52
Hadi Rezaee8-Apr-01 6:52 
GeneralRe: Read from file question ... Pin
Dharne Atul8-Apr-01 8:33
Dharne Atul8-Apr-01 8:33 

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.