tvgetstr.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. /*****************************************************************************
  2. *
  3. * Module tvGetStr.H
  4. * The defines and prototypes for the ToolVox error string
  5. * reporting module.
  6. *
  7. * Voxware Proprietary Material
  8. * Copyright 1996, Voxware, Inc.
  9. * All Rights Resrved
  10. *
  11. * DISTRIBUTION PROHIBITED without
  12. * written authorization from Voxware
  13. *
  14. ****************************************************************************/
  15. #if (_DEBUG_MESSAGES == 1) || defined(_DEBUG)
  16. #ifndef __TVGETSTR_H_
  17. #define __TVGETSTR_H_
  18. #ifdef __cplusplus
  19. extern "C" {
  20. #endif
  21. /* Windows users must define VOXWARE_??? as a compiler option. This will */
  22. /* enable system specific code. */
  23. #if defined (VOXWARE_WIN16) || (VOXWARE_WIN32)
  24. #define STRING_FORMAT wsprintf
  25. #elif defined(VOXWARE_MAC)
  26. #define STRING_FORMAT sprintf
  27. #elif defined(VOXWARE_HP)
  28. #define STRING_FORMAT sprintf
  29. #elif defined(VOXWARE_SUN)
  30. #define STRING_FORMAT sprintf
  31. #elif defined(VOXWARE_DOS)
  32. #define STRING_FORMAT sprintf
  33. #else
  34. #pragma message ("TVGETSTR.H: Platform indicator #define not setup.")
  35. #pragma message ("TVGETSTR.H: One of the following must be initialized:")
  36. #pragma message ("TVGETSTR.H: #define VOXWARE_WIN16")
  37. #pragma message ("TVGETSTR.H: #define VOXWARE_WIN32")
  38. #pragma message ("TVGETSTR.H: #define VOXWARE_MAC")
  39. #pragma message ("TVGETSTR.H: #define VOXWARE_SUN")
  40. #pragma message ("TVGETSTR.H: #define VOXWARE_HP")
  41. #pragma message ("TVGETSTR.H: #define VOXWARE_AIX")
  42. #pragma message ("TVGETSTR.H: #define VOXWARE_DOS")
  43. #pragma message ("TVGETSTR.H: Check the Voxware manual for more information.")
  44. #endif
  45. #define TVGETSTR_MAX_STRING_LENGTH 512
  46. void tvGetStringFromError(VOXWARE_RETCODE wVoxwareError, signed long dwReturnCode,
  47. char VOX_FAR *lpMessage);
  48. #ifdef __cplusplus
  49. }
  50. #endif
  51. #endif /*__TVGETSTR_H_*/
  52. #endif /* _DEBUG_MESSAGES */