home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / dbmsg / odbc / admndemo / admndemo.rc < prev    next >
Encoding:
Text File  |  1997-10-06  |  12.5 KB  |  227 lines

  1. //*---------------------------------------------------------------------------------
  2. //|  ODBC System Administrator
  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. //|     Title:  ADMNDEMO.RC
  8. //|             Icons, menus, dialogs, and strings
  9. //*---------------------------------------------------------------------------------
  10. #include "admndemo.h"
  11. #include "info.h"
  12. #include "menu.h"
  13. #include "strings.h"
  14.  
  15. BASEICON        ICON  ADMNDEMO.ICO
  16. RSLTICON        ICON  RESULTS.ICO
  17. CONNECTICON     ICON  CONNECT.ICO
  18.  
  19. BASEMENU MENU
  20.         BEGIN
  21.         POPUP "&File"
  22.                 BEGIN
  23.                 MENUITEM "&Connect...\tCtrl+N",                 IDM_CONNECT
  24.                 MENUITEM "&Disconnect\tCtrl+D",                 IDM_DISCONNECT
  25.                 MENUITEM SEPARATOR
  26.                 MENUITEM "&Execute...",                         IDM_EXECUTE_FILE
  27.                 MENUITEM "&Open...\tCtrl+O",                    IDM_OPEN
  28.                 MENUITEM "C&lose",                              IDM_CLOSE
  29.                 MENUITEM "&Save...\tCtrl+S",                    IDM_SAVE
  30.                 MENUITEM "Save &As...",                         IDM_SAVEAS
  31.                 MENUITEM SEPARATOR
  32.                 MENUITEM "E&xit",                               IDM_EXIT
  33.                 END
  34.         POPUP "&Edit"
  35.                 BEGIN
  36.                 MENUITEM "&Undo\tCtrl+Z",                       IDM_UNDO
  37.                 MENUITEM SEPARATOR
  38.                 MENUITEM "Cu&t\tCtrl+X",                        IDM_CUT
  39.                 MENUITEM "&Copy\tCtrl+C",                       IDM_COPY
  40.                 MENUITEM "&Paste\tCtrl+V",                      IDM_PASTE
  41.                 MENUITEM SEPARATOR
  42.                 MENUITEM "Select &All",                         IDM_SELECT_ALL
  43.                 END
  44.         POPUP "&Command"
  45.                 BEGIN
  46.                 MENUITEM "&Execute\tCtrl+E",                    IDM_EXECUTE_NOW
  47.                 MENUITEM SEPARATOR
  48.                 MENUITEM "&Commit",                             IDM_COMMIT
  49.                 MENUITEM "&Rollback",                           IDM_ROLLBACK
  50.                 END
  51.         POPUP "&Pipe"
  52.                 BEGIN
  53.                 MENUITEM "&Edit...",                            IDM_PIPE_EDIT
  54.                 MENUITEM "&Do...",                              IDM_PIPE_DO
  55.                 END
  56.         POPUP "&Info"
  57.                 BEGIN
  58.                 MENUITEM "Manage Data Sources...",                      IDM_MANAGE_DSNS
  59.                 MENUITEM SEPARATOR
  60.                 MENUITEM "Data &Sources",                       IDM_DATA_SOURCES        
  61.                 MENUITEM "&Data Types",                         IDM_DATA_TYPES
  62.                 MENUITEM "&Functions",                          IDM_FUNCTIONS   
  63.                 MENUITEM "&ODBC Information",                   IDM_ODBC_INFO
  64.                 END
  65.         POPUP "&Lists"
  66.                 BEGIN                                                                               
  67.                 MENUITEM "&Tables...",                          IDM_TABLES
  68.                 MENUITEM "&Columns...",                         IDM_COLUMNS
  69.                 MENUITEM "&Statistics...",                      IDM_STATISTICS
  70.                 MENUITEM "P&rimary Keys...",                    IDM_PRIMARY_KEYS
  71.                 MENUITEM "&Foreign Keys...",                    IDM_FOREIGN_KEYS
  72.                 MENUITEM "T&able Privileges...",                IDM_TABLE_PRIVS
  73.                 MENUITEM "C&olumn Privileges...",               IDM_COLUMN_PRIVS
  74.                 MENUITEM "Spec&ial Columns...",                 IDM_SPECIAL_COLUMNS
  75.                 MENUITEM "&Procedures...",                      IDM_PROCEDURES
  76.                 MENUITEM "Procedur&e Columns...",               IDM_PROC_COLUMNS                        
  77.                 END
  78.         POPUP "&Window"
  79.                 BEGIN
  80.                 MENUITEM "&Font",                               IDM_FONT
  81.                 MENUITEM SEPARATOR
  82.                 MENUITEM "&Cascade\tShift+F5",                  IDM_CASCADE
  83.                 MENUITEM "&Tile\tShift+F4",                     IDM_TILE
  84.                 MENUITEM        "&Arrange Icons",               IDM_ARRANGE
  85.                 MENUITEM "C&lose All",                          IDM_CLOSEALL
  86.                 END
  87.         POPUP   "&Help"
  88.                 BEGIN
  89.                 MENUITEM "&Help on Admin Demo",                 IDM_HELP, HELP
  90.                 MENUITEM SEPARATOR
  91.                 MENUITEM "&About Admin Demo...",                IDM_ABOUT
  92.                 END
  93.         END
  94.  
  95. BASEACCELS ACCELERATORS
  96.         BEGIN
  97.         "^N",           IDM_CONNECT
  98.         "^D",           IDM_DISCONNECT
  99.         "^O",           IDM_OPEN
  100.         "^S",           IDM_SAVE
  101.         "^Z",           IDM_UNDO
  102.         "^X",           IDM_CUT
  103.         "^C",           IDM_COPY
  104.         "^V",           IDM_PASTE
  105.         "^E",           IDM_EXECUTE_NOW
  106.         VK_F1,  IDM_HELP, VIRTKEY
  107.         VK_F4,  IDM_TILE, VIRTKEY, SHIFT
  108.         VK_F5,  IDM_CASCADE, VIRTKEY, SHIFT
  109.         VK_F6,  IDM_MOVE_WINDOW, VIRTKEY
  110.         END
  111.  
  112. STRINGTABLE 
  113.         BEGIN
  114.         // Error and informational messages
  115.         idsFileClosed                    "File %s closed.\r\n"
  116.         idsSuccessConnect                "User %s successfully connected to %s.\r\n"
  117.         idsDisconnectSuccess             "Successfully disconnected.\r\n"
  118.    idsErrorString                   "%s:  %s\r\n"
  119.    idsMsgErrorString                "ODBC Error ocurred:\r\n%s:  %s"
  120.         idsCloseFile                     "Close file %s?"   
  121.         idsOpenFileFailed                "Could not open file %s for input."
  122.         idsSaveFileFailed                "Save of file %s failed.  Please make sure that no other applications have the file open then try your request again."
  123.         idsSQLAllocHandleFailed          "SA Tool was unable to initialize.  Call to SQLAllocHandle failed."
  124.         idsMaxRecords                    "Self imposed record limit of %d has been reached.  No more records will be fetched."
  125.         idsStmtProcessed                 "Statement processed successfully.\r\n"
  126.         idsAffectedRows                  "%ld rows affected.\r\n"
  127.         idsNoDataFound                   "No data found.\r\n"
  128.         idsNumTooSmall                   "Minimum statement length must be at least 100."
  129.         idsTerminatorNotFound            "Statement terminator not found.\r\n";
  130.         idsExecutingFile                 "Executing file %s.\r\n";
  131.         idsInvalidTerminator             "Invalid statement terminator.\r\n";
  132.         idsPipeNotFound                  "Pipe %s not found.\r\n"
  133.         idsInvalidParamValue             "Invalid parameter value %d for pipe %s.\r\n"
  134.         idsOutOfMemory                   "Memory is too low to fulfill this request.  Please close other applications and try your request again."
  135.         idsInvalidCmdLine                "Invalid command line.  No arguments processed."
  136.         idsCmdLineTooBig                 "A command line parameter is too large, no arguments processed."
  137.         idsDftFileFilter                 "SQL Batch File (*.SQL)|*.SQL|All Files (*.*)|*.*|"
  138.         idsExpression                    "Expression%u"
  139.         idsInvalidInt                                                   "'%s' is not a valid integer."
  140.         idsTooManyParms                                         "%d parameters were specified, the maximum is %d."
  141.         idsInvalidName                                                  "Invalid name '%s'.  Names cannot contain the [, ], or = characters, nor can they be reserved section names.";
  142.         idsTooManyConnects                                      "Already have maximum connections of %d."
  143.  
  144.         
  145.         
  146.         //---- ODBC Functions --------------------------------------
  147.         idsSQLAllocConnect                    "SQLAllocConnect"
  148.         idsSQLAllocEnv                        "SQLAllocEnv"
  149.         idsSQLAllocHandle                     "SQLAllocHandle"
  150.         idsSQLAllocStmt                       "SQLAllocStmt"
  151.         idsSQLBindCol                         "SQLBindCol"
  152.         idsSQLBindParam                       "SQLBindParam"
  153.         idsSQLBindParameter                   "SQLBindParameter"
  154.         idsSQLBrowseConnect                   "SQLBrowseConnect"
  155.         idsSQLBulkOperations                  "SQLBulkOperations"
  156.         idsSQLCancel                          "SQLCancel"
  157.         idsSQLCloseCursor                     "SQLCloseCursor"
  158.         idsSQLColAttribute                    "SQLColAttribute"
  159.         idsSQLColAttributes                   "SQLColAttributes"
  160.         idsSQLColumnPrivileges                "SQLColumnPrivileges"
  161.         idsSQLColumns                         "SQLColumns"
  162.         idsSQLConnect                         "SQLConnect"
  163.         idsSQLCopyDesc                        "SQLCopyDesc"
  164.         idsSQLDataSources                     "SQLDataSources"
  165.         idsSQLDescribeCol                     "SQLDescribeCol"
  166.         idsSQLDescribeParam                   "SQLDescribeParam"
  167.         idsSQLDisconnect                      "SQLDisconnect"
  168.         idsSQLDriverConnect                   "SQLDriverConnect"
  169.         idsSQLEndTran                         "SQLEndTran"
  170.         idsSQLError                           "SQLError"
  171.         idsSQLExecDirect                      "SQLExecDirect"
  172.         idsSQLExecute                         "SQLExecute"
  173.         idsSQLExtendedFetch                   "SQLExtendedFetch"
  174.         idsSQLFetch                           "SQLFetch"
  175.         idsSQLFetchScroll                     "SQLFetchScroll"
  176.         idsSQLForeignKeys                     "SQLForeignKeys"
  177.         idsSQLFreeConnect                     "SQLFreeConnect"
  178.         idsSQLFreeEnv                         "SQLFreeEnv"
  179.         idsSQLFreeHandle                      "SQLFreeHandle"
  180.         idsSQLFreeStmt                        "SQLFreeStmt"
  181.         idsSQLGetConnectAttr                  "SQLGetConnectAttr"
  182.         idsSQLGetConnectOption                "SQLGetConnectOption"
  183.         idsSQLGetCursorName                   "SQLGetCursorName"
  184.         idsSQLGetData                         "SQLGetData"
  185.         idsSQLGetDescField                    "SQLGetDescField"
  186.         idsSQLGetDescRec                      "SQLGetDescRec"
  187.         idsSQLGetDiagField                    "SQLGetDiagField"
  188.         idsSQLGetDiagRec                      "SQLGetDiagRec"
  189.         idsSQLGetEnvAttr                      "SQLGetEnvAttr"
  190.         idsSQLGetFunctions                    "SQLGetFunctions"
  191.         idsSQLGetInfo                         "SQLGetInfo"
  192.         idsSQLGetStmtAttr                     "SQLGetStmtAttr"
  193.         idsSQLGetStmtOption                   "SQLGetStmtOption"
  194.         idsSQLGetTypeInfo                     "SQLGetTypeInfo"
  195.         idsSQLMoreResults                     "SQLMoreResults"
  196.         idsSQLNativeSQL                       "SQLNativeSQL"
  197.         idsSQLNumParams                       "SQLNumParams"
  198.         idsSQLNumResultCols                   "SQLNumResultCols"
  199.         idsSQLParamOptions                    "SQLParamOptions"
  200.         idsSQLPrepare                         "SQLPrepare"
  201.         idsSQLPrimaryKeys                     "SQLPrimaryKeys"
  202.         idsSQLProcedureColumns                "SQLProcedureColumns"
  203.         idsSQLProcedures                      "SQLProcedures"
  204.         idsSQLPutData                         "SQLPutData"
  205.         idsSQLRowCount                        "SQLRowCount"
  206.         idsSQLSetConnectAttr                  "SQLSetConnectAttr"
  207.         idsSQLSetConnectOption                "SQLSetConnectOption"
  208.         idsSQLSetCursorName                   "SQLSetCursorName"
  209.         idsSQLSetDescField                    "SQLSetDescField"
  210.         idsSQLSetDescRec                      "SQLSetDescRec"
  211.         idsSQLSetEnvAttr                      "SQLSetEnvAttr"
  212.         idsSQLSetParam                        "SQLSetParam"
  213.         idsSQLSetPos                          "SQLSetPos"
  214.         idsSQLSetScrollOptions                "SQLSetScrollOptions"
  215.         idsSQLSetStmtAttr                     "SQLSetStmtAttr"
  216.         idsSQLSetStmtOption                   "SQLSetStmtOption"
  217.         idsSQLSpecialColumns                  "SQLSpecialColumns"
  218.         idsSQLStatistics                      "SQLStatistics"
  219.         idsSQLTablePrivileges                 "SQLTablePrivileges"
  220.         idsSQLTables                          "SQLTables"
  221.         idsSQLTransact                        "SQLTransact"
  222.         
  223.  
  224.         END
  225.  
  226. #include "admndemo.dlg"
  227.