home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0040 - 0049 / ibm0040-0049 / ibm0040.tar / ibm0040 / ZINC_5.ZIP / WINSRC.ZIP / ERROR.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1991-06-01  |  535 b   |  25 lines

  1. //    Zinc Interface Library - ERROR.CPP
  2. //    COPYRIGHT (C) 1990, 1991.  All Rights Reserved.
  3. //    Zinc Software Incorporated.  Pleasant Grove, Utah  USA
  4.  
  5. #include "ui_win.hpp"
  6.  
  7. void UI_ERROR_SYSTEM::Beep(void)
  8. {
  9.     MessageBeep(0);
  10. }
  11.  
  12. #pragma argsused
  13. void UI_ERROR_SYSTEM::ReportError(UI_WINDOW_MANAGER *windowManager,
  14.     USHORT objectFlags, char *msg, ...)
  15. {
  16.     Beep();
  17.     if (windowManager)
  18.     {
  19.         UI_EVENT event;
  20.         event.type = S_ERROR_RESPONSE;
  21.         event.rawCode = 0;
  22.         windowManager->eventManager->Put(event, Q_BEGIN);
  23.     }
  24. }
  25.