home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0210 - 0219 / ibm0210-0219 / ibm0213.tar / ibm0213 / 7025PWA1.ZIP / SAMPLES.ZIP / SQLLIB / SAMPLES / WIN / WINMOD.H < prev    next >
Encoding:
C/C++ Source or Header  |  1994-02-28  |  1.7 KB  |  54 lines

  1. #define IDMSTARTUSING  1
  2. #define IDMSTOPUSING   2
  3. #define IDMCATALOG     3
  4. #define IDMUNCATALOG   4
  5. #define IDMEXIT        5
  6. #define IDMQUERY       6
  7.  
  8. #define CATALOGDIALOG    1
  9. #define UNCATLGDIALOG    2
  10. #define STARTDBDIALOG    3
  11. #define QUERYDBDIALOG    4
  12.  
  13. #define IDNULL      -1
  14. #define IDDDEFAULTS 0x0101
  15. #define IDDTEXT     0x0102
  16. #define IDDUNCATLG  0x010E
  17.  
  18. #define IDDTEXT1    0x0201
  19. #define IDDTEXT2    0x0202
  20.  
  21. #define IDSQUERY       1
  22. #define IDSSQLCODE     2
  23. #define IDSSUCCESS     3
  24. #define IDSFAILURE     4
  25. #define IDSDBDISC      5
  26. #define IDSDBCATLG     6
  27. #define IDSDBUNCATLG   7
  28. #define IDSDBCONNECT   8
  29. #define IDSBADSQLCA    9
  30. #define IDSALLOCERR    10
  31. #define IDSCONVERR     11
  32.  
  33. #define WM_DEFINED          0x0400
  34.  
  35. /***********************************************************************/
  36. /*  These procedures must be declared FAR, even if this application    */
  37. /*  were SMALL model, because they are exported and called by windows. */
  38. /***********************************************************************/
  39. BOOL FAR PASCAL CatalogDlg      (HWND, unsigned, WORD, LONG);
  40. BOOL FAR PASCAL UnCatalogDlg    (HWND, unsigned, WORD, LONG);
  41. BOOL FAR PASCAL StartDBDlg      (HWND, unsigned, WORD, LONG);
  42. BOOL FAR PASCAL QueryDBDlg      (HWND, unsigned, WORD, LONG);
  43. short err( HWND hWnd, short rc, struct sqlca far * ca );
  44.  
  45. /*****************************************************************************/
  46. /* STRUCTURES                                                                */
  47. /*****************************************************************************/
  48. #define FILENAME_SZ          75
  49. #define DBNAME_SZ             9
  50. #define TNAME_SZ             19
  51. #define MAX_SELECT_STMT_SZ 1024
  52. #define BUFSIZE             512
  53.  
  54.