home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Internet Business Development Kit / PRODUCT_CD.iso / sqlsvr / odbcsdk / samples / smpldrvr / sample.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-12-07  |  2.1 KB  |  89 lines

  1. /*
  2. ** SAMPLE.H - This is the ODBC sample driver include file.
  3. **
  4. **    This code is furnished on an as-is basis as part of the ODBC SDK and is
  5. **    intended for example purposes only.
  6. **
  7. */
  8.  
  9. //    -    -    -    -    -    -    -    -    -
  10.  
  11. #define WINVER 0x0300 // prevent Windows 3.1 feature usage
  12. #include  <windows.h>                     // Windows include file
  13. #include  <windowsx.h>                      // message crackers
  14.  
  15. //    -    -    -    -    -    -    -    -    -
  16.  
  17. #include "w16macro.h"
  18. #include "sql.h"
  19. #include "sqlext.h"
  20.  
  21. //    Definitions to be used in function prototypes.
  22. //    The SQL_API is to be used only for those functions exported for driver
  23. //        manager use.
  24. //    The EXPFUNC is to be used only for those functions exported but used
  25. //        internally, ie, dialog procs.
  26. //    The INTFUNC is to be used for all other functions.
  27. #ifdef WIN32
  28. #define INTFUNC  __stdcall
  29. #define EXPFUNC  __stdcall
  30. #else
  31. #define INTFUNC PASCAL
  32. #define EXPFUNC __export CALLBACK
  33. #endif
  34.  
  35. //    -    -    -    -    -    -    -    -    -
  36.  
  37. //    Environment information.
  38.  
  39. typedef    struct    tagENV {
  40.     short   DummyEntry;
  41. }    ENV,
  42.     FAR * LPENV;
  43.  
  44. //    -    -    -    -    -    -    -    -    -
  45.  
  46. //    Database connection information.  This is allocated by "SQLAllocConnect".
  47.  
  48. typedef struct    tagDBC {
  49.     short   DummyEntry;
  50. }    DBC,
  51.     FAR * LPDBC;
  52.  
  53. //    -    -    -    -    -    -    -    -    -
  54.  
  55. //  Statment information.  This is allocated by "SQLAllocStmt".
  56.  
  57. typedef struct    tagSTMT {
  58.     short   DummyEntry;
  59. }    STMT,
  60.     FAR *LPSTMT;
  61.  
  62. //    -    -    -    -    -    -    -    -    -
  63.  
  64. extern HINSTANCE NEAR s_hModule;    // DLL handle.
  65.  
  66. //    -    -    -    -    -    -    -    -    -
  67.  
  68. //    Resource defines for "SQLDriverConnect" dialog box.
  69.  
  70. #define    ID_LISTBOX    100
  71.  
  72. //    -    -    -    -    -    -    -    -    -
  73.  
  74. //    Resource defines for "Setup" dialog boxes.
  75.  
  76. #define CONFIGDSN                   1001
  77. #define CONFIGDEFAULT               1002
  78. #define EDRIVERCONNECT                1003
  79. #define IDC_DSNAME                  400
  80. #define IDC_DSNAMETEXT              401
  81. #define IDC_OPTION1                 402
  82. #define IDC_OPTION2                 403
  83. #define IDC_DESC                    404
  84. #define IDC_SELECT                    405
  85. #define IDC_TRANS_NAME                406
  86.  
  87. #define IDS_MSGTITLE                500
  88. #define IDS_BADDSN                  501
  89.