home *** CD-ROM | disk | FTP | other *** search
/ NEXT Generation 27 / NEXT27.iso / pc / demos / emperor / dx3.exe / SDK / SAMPLES / MISC / RMERROR.H < prev    next >
C/C++ Source or Header  |  1996-08-28  |  672b  |  40 lines

  1. /*
  2.  *  Copyright (C) 1995, 1996 Microsoft Corporation. All Rights Reserved.
  3.  *
  4.  *  File: rmerror.h
  5.  *
  6.  *  Error reporting code for D3DRM examples.
  7.  *
  8.  */
  9.  
  10. #ifndef __ERROR_H__
  11. #define __ERROR_H__
  12.  
  13. #include <ddraw.h>
  14. #include <d3d.h>
  15. #include <d3drmwin.h>
  16. #include <d3drm.h>
  17.  
  18. #ifdef __cplusplus
  19. extern "C" {
  20. #endif
  21.  
  22. /* Msg
  23.  * Displays a message box containing the given formatted string.
  24.  */
  25. void __cdecl
  26. Msg( LPSTR fmt, ... );
  27.  
  28. /*
  29.  * D3DRMErrorToString
  30.  * Returns a pointer to a string describing the given DD, D3D or D3DRM error code.
  31.  */
  32. char*
  33. D3DRMErrorToString(HRESULT error);
  34.  
  35. #ifdef __cplusplus
  36. };
  37. #endif
  38. #endif // __ERROR_H__
  39.  
  40.