home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_02_05
/
2n05015a
< prev
next >
Wrap
Text File
|
1991-04-02
|
683b
|
34 lines
/*
* DebugAlert()
* Posts a message box with the error message that was
* passed in, and the message box options.
*
* Params:
* hWnd - window handle to post message box in
* message - error string to post
*
* Returns:
* which button the user clicked on
*
* Assumptions:
* That we have enough room in memory to post the message box.
*
*/
int FAR PASCAL
DebugAlert(HWND hWnd, LPSTR message)
{
int rVal;
/*----------------------------*/
rVal = MessageBox(hWnd,
(LPSTR)message,
"Debug information",
MB_ICONSTOP | MB_OK);
return rVal;
}