home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Visual Database / Visual dBase Pro v7.0 / DATA1.CAB / Sample_dBASE / Bde4api.h next >
Encoding:
C/C++ Source or Header  |  1997-11-20  |  1.5 KB  |  42 lines

  1. #include "structapi.h"
  2.  
  3. #define UINT16      CUSHORT
  4. #define UINT32      CULONG
  5. #define DBIResult   UINT16
  6. #define hDBIObj     UINT32          // Generic object handle
  7. #define hDBICur     hDBIObj         // Cursor handle
  8. #define phDBICur    CPTR hDBICur       // pointer to Cursor handle
  9. #define BYTE        CUCHAR
  10. #define pBYTE       CPTR
  11. #define pRECProps   CPTR
  12. #define DBILockType CUINT
  13.  
  14. #define CHAR        CCHAR      // from winnt.h
  15. #define DBINAME     CSTRING    // Changed from CPTR CHAR to allow extern
  16.                                // to handle Unicode to ANSI conversion
  17.  
  18. // Lock types (Table Level)
  19. #define dbiNOLOCK    0              // No lock   (Default)
  20. #define dbiWRITELOCK 1              // Write lock
  21. #define dbiREADLOCK  2              // Read lock
  22.  
  23.  
  24. #define ERRBASE_NONE             0     // No error
  25. #define ERRCODE_NONE             0
  26. #define DBIERR_NONE              (ERRBASE_NONE + ERRCODE_NONE)
  27.  
  28. #define DBIMAXNAMELEN         31       // Name limit (table, field etc)
  29. #define DBIMAXPATHLEN        260       // Max path+file name len (excluding zero termination)
  30.  
  31.  
  32. // dBASE Specific
  33. #define TYPE_DBINAME TYPE_STRING
  34. #define TYPE_DBIPATH TYPE_STRING
  35. #define TYPE_DBDESC  TYPE_STRING
  36.  
  37. #define SIZEOF_RECPROPS 14
  38. #define SIZEOF_DBIPATH  (DBIMAXPATHLEN+1)     // holds a DOS path
  39. #define SIZEOF_DBINAME  (DBIMAXNAMELEN+1)     // holds a name
  40. #define SIZEOF_DBDESC   (SIZEOF_DBINAME + SIZEOF_DBINAME + SIZEOF_DBIPATH + SIZEOF_DBINAME ) 
  41. #define BDENULL         0
  42.