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

C / C++ / MFC

 
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 
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 
Hello, the codegurus around the world.;)

If you use the debugger, you may find the reason.
I think that ::MessageBox() should be called in if (response == IDOK)

The other way is that we put MessageBox() in CMyDialog::OnOK().
We often tend to use MessageBox() to check something.
But, TRACE, TRACE1, and so on works also in the debug mode.

void CMyDialog::OnOK()
{
     MessageBox("OK button works", "Test");
     TRACE ("OK button works")
     // In Debug mode, "OK button works" shows in Output windows;

     CDialog::OnOK();
}


Have a nice day!
-Masaaki Onishi-
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 
QuestionCListCtrl - Delete Selected Items??? Pin
Ryan Baillargeon7-Apr-01 22:04
Ryan Baillargeon7-Apr-01 22:04 
AnswerRe: CListCtrl - Delete Selected Items??? Pin
AlexMarbus8-Apr-01 3:37
AlexMarbus8-Apr-01 3:37 

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.