home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgLangD.iso / Borland Visual dBASE Professiona v7.0 / DATA1.CAB / Sample_Include / structAPI.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-11-20  |  1.4 KB  |  62 lines

  1. // Header file for STRUCMEM.DLL
  2. // Defines constants for the data types and their sizes
  3.  
  4. #ifndef _structapi_
  5. #define _structapi_
  6.  
  7. //
  8. // Define data types of members
  9. //
  10.  
  11. // C++ Types
  12. #define TYPE_STRING  -1
  13. #define TYPE_CHAR     0
  14. #define TYPE_UCHAR    1
  15. #define TYPE_SHORT    2
  16. #define TYPE_USHORT   3
  17. #define TYPE_INT      4
  18. #define TYPE_UINT     5 
  19. #define TYPE_LONG     6
  20. #define TYPE_ULONG    7
  21. #define TYPE_FLOAT    8
  22. #define TYPE_DOUBLE   9
  23. #define TYPE_LDOUBLE  10
  24. #define TYPE_CHANDLE  TYPE_UINT
  25. #define TYPE_POINTER  TYPE_UINT
  26.  
  27.  
  28. // Windows Types
  29. #define TYPE_RECT     TYPE_POINTER
  30. #define TYPE_HDC      TYPE_CHANDLE
  31. #define TYPE_BYTE     TYPE_UCHAR
  32. #define TYPE_BCHAR    TYPE_BYTE
  33. #define TYPE_WORD     TYPE_USHORT
  34. #define TYPE_DWORD    TYPE_ULONG
  35. #define TYPE_BOOL     TYPE_INT
  36. #define TYPE_LPVOID   TYPE_LONG
  37. //
  38. // Size of data types
  39. //
  40.  
  41. // C++ types
  42. #define SIZEOF_STRING   -1
  43. #define SIZEOF_CHAR      1
  44. #define SIZEOF_UCHAR     1
  45. #define SIZEOF_SHORT     2
  46. #define SIZEOF_USHORT    2
  47. #define SIZEOF_INT       4
  48. #define SIZEOF_UINT      4 
  49. #define SIZEOF_LONG      4
  50. #define SIZEOF_ULONG     4
  51. #define SIZEOF_FLOAT     4
  52. #define SIZEOF_DOUBLE    8
  53. #define SIZEOF_LDOUBLE   10
  54. #define SIZEOF_POINTER   4
  55.  
  56. // Windows types
  57. #define SIZEOF_BYTE      SIZEOF_UCHAR
  58. #define SIZEOF_WORD      SIZEOF_USHORT
  59. #define SIZEOF_DWORD     SIZEOF_ULONG
  60. #define SIZEOF_BOOL      SIZEOF_INT
  61.  
  62. #endif  // _structapi_