home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c480 / 20.ddi / MFC / INCLUDE / AFXV_DOS.H_ / AFXV_DOS.H
Encoding:
C/C++ Source or Header  |  1993-02-08  |  1.4 KB  |  48 lines

  1. // Microsoft Foundation Classes C++ library.
  2. // Copyright (C) 1992 Microsoft Corporation,
  3. // All rights reserved.
  4.  
  5. // This source code is only intended as a supplement to the
  6. // Microsoft Foundation Classes Reference and Microsoft
  7. // QuickHelp and/or WinHelp documentation provided with the library.
  8. // See these sources for detailed information regarding the
  9. // Microsoft Foundation Classes product.
  10.  
  11. // afxv_dos.h - target version/configuration control for _DOS (non Windows)
  12.  
  13. #ifndef _DOS
  14. #error  afxv_dos.h must only be included as the _DOS configuration file
  15. #endif
  16. #ifdef _WINDOWS
  17. #error  afxv_dos.h must not be included with a _WINDOWS configuration
  18. #endif
  19.  
  20. // VBX not supported
  21. #define NO_VBX_SUPPORT
  22.  
  23. // Windows String APIs for DOS
  24. #define lstrlen _fstrlen
  25. #define lstrcmp _fstrcmp
  26. #define lstrcmpi _fstricmp
  27. #define lstrcpy _fstrcpy
  28. #define lstrcat _fstrcat
  29.  
  30. // ANSI and OEM character sets are the same
  31. #define AnsiToOem(src, dst) _fstrcpy(dst, src)
  32. #define OemToAnsi(src, dst) _fstrcpy(dst, src)
  33.  
  34. // Setjmp support (C runtimes default)
  35. #define _AFX_JBLEN  9
  36. #define setjmp _setjmp
  37. extern "C" int __cdecl _setjmp(int[_AFX_JBLEN]);
  38. #define Catch   setjmp
  39.  
  40. // Other Windows helpers
  41. #ifndef max
  42. #define max(a,b)            (((a) > (b)) ? (a) : (b))
  43. #endif
  44. #ifndef min
  45. #define min(a,b)            (((a) < (b)) ? (a) : (b))
  46. #endif
  47.  
  48.