Pinyo's Programming and Software Notes

Wednesday, June 28, 2006

Message Box in MFC application
(June 28, 2006)

It is easy to invoke a message box in an MFC application.
The following code snippet is for error message:
MessageBox("Help, Something went wrong.", "Error",
MB_ICONERROR | MB_OK);

The message box is an instance of CWnd::MessageBox .
For more informateion: http://msdn2.microsoft.com/en-us/library/0eebkf6f.aspx

0 Comments:

Post a Comment

<< Home