home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Visual Database / Visual Foxpro 6.0 (Ent. Edition) / Vf6ent Extractor.EXE / FFC / AUTOMATE.H < prev    next >
Encoding:
Text File  |  1998-05-26  |  2.6 KB  |  64 lines

  1. *- Automate.h
  2. *-
  3. *- #DEFINEs for the AUTOMATE.VCX class
  4.  
  5. #DEFINE L_DEBUG                .F.
  6.  
  7. #DEFINE E_UNSUPPORTEDOS_LOC    "This class cannot be used on the current operating system."
  8. #DEFINE    E_ODBC1_LOC            "Could not check ODBC.INI file. Check to see if ODBC is properly installed."
  9. #DEFINE    E_ODBC2_LOC            "Could not find FoxPro Files ODBC driver. Check to see if it is installed."
  10. #DEFINE    E_ODBC3_LOC            "Invalid FoxPro Files entry in ODBC.INI file."
  11. #DEFINE    E_ODBCDLL_LOC        "Could not check for proper ODBC installed files."
  12. #DEFINE E_NOREGISTRY_LOC    "Unable to load REGISTRY procedure file. Make sure it is in the current path."
  13. #DEFINE C_FILEUSE2_LOC        "File is in use. Please select another."
  14. #DEFINE E_NODATA_LOC        "No data source was specified."
  15. #DEFINE E_NOFIELDS_LOC        "No data fields were specified."
  16. #DEFINE E_NOALIAS_LOC        "Specified alias could not be found."
  17. #DEFINE C_ODBCOLDVER_LOC     "You have an old FoxPro ODBC driver installed."
  18.  
  19. ******************************************************************************
  20. * Used by GetOS and other methods
  21. ******************************************************************************
  22. * Operating System codes
  23. #DEFINE    OS_W32S                1
  24. #DEFINE    OS_NT                2
  25. #DEFINE    OS_WIN95            3
  26. #DEFINE    OS_MAC                4
  27. #DEFINE    OS_DOS                5
  28. #DEFINE    OS_UNIX                6
  29.  
  30. *- ODBC Driver info
  31. #DEFINE ODBC_DRVR        "Driver"
  32. #DEFINE ODBC_DRVR32        "Driver32"
  33.  
  34. #DEFINE        ODBC_FOX_DSN        "FoxPro Files"
  35. #DEFINE        ODBC_FOX_FIL        "FoxPro 2.6"
  36. #DEFINE     FOXODBC_25            "FoxPro Files (*.dbf)"
  37. #DEFINE     FOXODBC_26            "Microsoft FoxPro Driver (*.dbf)"
  38. #DEFINE     FOXODBC_26FIX        "Microsoft FoxPro 2.6 Driver (*.dbf)"
  39. #DEFINE     FOXODBC_30            "Visual FoxPro"
  40. #DEFINE     FOXODBC_30a            "Visual FoxPro Database"
  41. #DEFINE     FOXODBC_30b            "Visual FoxPro Tables"
  42. #DEFINE        C_DRIVEID            "DriverID"
  43. #DEFINE        FOX_DRIVEID            24
  44. #DEFINE     ODBC_DATA_KEY        "Software\ODBC\ODBC.INI\"    && ODBC Registry key
  45. #DEFINE        C_FIL                "FIL"
  46. #DEFINE        C_FOX2                "FoxPro 2.0"
  47. #DEFINE     HKEY_CLASSES_ROOT   -2147483648  && BITSET(0,31)
  48. #DEFINE     HKEY_CURRENT_USER   -2147483647  && BITSET(0,31)+1
  49. #DEFINE     HKEY_LOCAL_MACHINE  -2147483646  && (( HKEY ) 0x80000002 )
  50.  
  51. #DEFINE        FOXODBC_ANY            "FoxPro"
  52.  
  53. #DEFINE    ODBC_FILE             "ODBC.INI"
  54. #DEFINE    ODBC_FILE_68K         "ODBC Preferences"
  55. #DEFINE    ODBC_FILE_PPC         "ODBC Preferences PPC"
  56. #DEFINE    ODBC_SOURCE            "ODBC Data Sources"            && Localization ????
  57. #DEFINE    ODBC_32SOURCE        "ODBC 32 bit Data Sources"    && Localization ????
  58.  
  59. *- registry codes
  60. #DEFINE     ERROR_SUCCESS        0
  61. #DEFINE        ERROR_NOINIFILE        -108    && no DLL file used to check ODBC
  62. #DEFINE        ERROR_NOINIENTRY    -109    && no entry found in INI file (section)
  63. #DEFINE        ERROR_FAILINI        -110    && no entry found in INI file
  64.