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 >
Text File  |  1991-04-02  |  683b  |  34 lines

  1. /*
  2.  * DebugAlert()
  3.  *    Posts a message box with the error message that was
  4.  * passed in, and the message box options.
  5.  *
  6.  * Params:
  7.  *   hWnd - window handle to post message box in
  8.  *   message - error string to post
  9.  *
  10.  * Returns:
  11.  *   which button the user clicked on
  12.  *
  13.  * Assumptions:
  14.  *   That we have enough room in memory to post the message box.
  15.  *
  16.  */
  17.  
  18.     int FAR PASCAL
  19. DebugAlert(HWND hWnd, LPSTR message)
  20. {
  21.     int rVal;
  22.  
  23.     /*----------------------------*/
  24.  
  25.     rVal = MessageBox(hWnd,
  26.                       (LPSTR)message,
  27.                       "Debug information",
  28.                       MB_ICONSTOP | MB_OK);
  29.  
  30.     return rVal;
  31. }
  32.  
  33.  
  34.