home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Internet Business Development Kit / PRODUCT_CD.iso / sqlsvr / odbcsdk / samples / smpldrvr / sample.rc < prev    next >
Encoding:
Text File  |  1994-12-07  |  3.4 KB  |  92 lines

  1. /*
  2. ** SAMPLE.RC - This is the ODBC sample driver resource 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. #include "sample.h"
  10.  
  11. EDRIVERCONNECT DIALOG LOADONCALL MOVEABLE DISCARDABLE 96, 41, 91, 73
  12. CAPTION    "Connect..."
  13. FONT    8, "helv"
  14. STYLE    WS_BORDER | WS_CAPTION | WS_DLGFRAME | WS_SYSMENU |
  15.     DS_MODALFRAME | WS_POPUP
  16. BEGIN
  17.     CONTROL "&Connect to:", -1, "static",
  18.         SS_LEFT | WS_CHILD, 5, 3, 47, 8
  19.     CONTROL "", ID_LISTBOX, "listbox",
  20.         LBS_NOTIFY | LBS_SORT | LBS_STANDARD | WS_BORDER |
  21.         WS_VSCROLL | WS_CHILD | WS_TABSTOP, 5, 12, 81, 41
  22.     CONTROL "OK", IDOK, "button",
  23.         BS_DEFPUSHBUTTON | WS_TABSTOP | WS_CHILD, 5, 56, 36, 14
  24.     CONTROL "Cancel", IDCANCEL, "button",
  25.         BS_PUSHBUTTON | WS_TABSTOP | WS_CHILD, 50, 56, 36, 14
  26. END
  27.  
  28. CONFIGDSN DIALOG 65, 43, 220, 148
  29. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  30. CAPTION "Microsoft ODBC Sample Setup"
  31. FONT 8, "MS Sans Serif"
  32. BEGIN
  33.     CTEXT           "Change data source name, description, or options.  Then choose OK.", 
  34.                     -1, 20, 7, 180, 17
  35.     RTEXT           "Data Source &Name:", IDC_DSNAMETEXT, 8, 32, 65, 8, NOT 
  36.                     WS_GROUP
  37.     EDITTEXT        IDC_DSNAME, 75, 30, 140, 13, ES_AUTOHSCROLL | WS_GROUP
  38.     RTEXT           "&Description:", -1, 8, 47, 65, 8, NOT WS_GROUP
  39.     EDITTEXT        IDC_DESC, 75, 45, 140, 12, ES_AUTOHSCROLL
  40.     CONTROL         "Sample Option &One", IDC_OPTION1, "Button", 
  41.                     BS_AUTOCHECKBOX | WS_TABSTOP, 75, 65, 140, 10
  42.     CONTROL         "Sample Option &Two", IDC_OPTION2, "Button", 
  43.                     BS_AUTOCHECKBOX | WS_TABSTOP, 75, 75, 140, 10
  44.     GROUPBOX        "Translator", -1, 6, 87, 209, 36
  45.     LTEXT            "", IDC_TRANS_NAME, 14, 102, 142, 12
  46.     PUSHBUTTON        "&Select...", IDC_SELECT, 164, 101, 40, 14
  47.     DEFPUSHBUTTON   "OK", IDOK, 62, 128, 40, 14
  48.     PUSHBUTTON      "Cancel", IDCANCEL, 118, 128, 40, 14
  49. END
  50.  
  51. // Version -----------------------------------------------------------------
  52. #include  <odbcver.h>
  53.  
  54. #define USENGLISH_ANSI  "040904E4"        // String of 0x0409 and 1252
  55.  
  56. #define VER_COMPANYNAME_STR     "Microsoft Corporation\0"
  57. #define VER_LEGALTRADEMARKS_STR "ODBC(TM) is a trademark of Microsoft Corporation.  Microsoft\256 is a registered trademark of Microsoft Corporation. Windows(TM) is a trademark of Microsoft Corporation.\0"
  58. #define VER_PRODUCTNAME_STR     "Microsoft Open Database Connectivity\0"
  59. #define VER_FILEDESC_STR        "Microsoft Sample ODBC Driver\0"
  60. #define VER_FILENAME_STR        "SAMPLE.DLL\0"
  61. #define VER_NAME_STR            "SAMPLE\0"
  62.  
  63. VS_VERSION_INFO VERSIONINFO
  64. FILEVERSION     VER_FILEVERSION
  65. PRODUCTVERSION  VER_PRODUCTVERSION
  66. FILEFLAGSMASK   VER_FILEFLAGSMASK
  67. FILEFLAGS       VER_FILEFLAGS
  68. FILEOS          VER_FILEOS
  69. FILETYPE        VFT_DLL
  70. FILESUBTYPE     VFT2_UNKNOWN
  71. BEGIN
  72.   BLOCK "StringFileInfo"
  73.   BEGIN
  74.     BLOCK USENGLISH_ANSI
  75.     BEGIN
  76.       VALUE "CompanyName",        VER_COMPANYNAME_STR
  77.       VALUE "FileDescription",  VER_FILEDESC_STR
  78.       VALUE "FileVersion",      VER_FILEVERSION_STR
  79.       VALUE "InternalName",     VER_NAME_STR
  80.       VALUE "LegalTrademarks",  VER_LEGALTRADEMARKS_STR
  81.       VALUE "OriginalFilename", VER_FILENAME_STR
  82.       VALUE "ProductName",      VER_PRODUCTNAME_STR
  83.       VALUE "ProductVersion",   VER_PRODUCTVERSION_STR
  84.     END
  85.   END
  86.  
  87.   BLOCK "VarFileInfo"
  88.   BEGIN
  89.     VALUE "Translation",  0x0409, 1252
  90.   END
  91. END
  92.