Click here to Skip to main content
15,891,976 members
Articles / Desktop Programming / MFC

CODBCAccess: a CDatabase and CRecordset Wrapper

Rate me:
Please Sign up or sign in to vote.
5.00/5 (10 votes)
12 Mar 200312 min read 210.3K   4.3K   55  
A class to wrap the use of CDatabase and CRecordset into one object to communicate with databases
//{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by ODBCExample.rc
//
#define IDM_ABOUTBOX                    0x0010
#define IDD_ABOUTBOX                    100
#define IDS_ABOUTBOX                    101
#define IDD_ODBCEXAMPLE_DIALOG          102
#define IDR_MAINFRAME                   128
#define IDD_MAIN                        129
#define IDD_CONFIG                      130
#define IDD_RECORDSET                   132
#define IDD_NAMEPROMPT                  133
#define IDD_VIEWSET                     134
#define IDC_DATASOURCE                  1000
#define IDC_CONNECT                     1001
#define IDC_BEGINTRANS                  1002
#define IDC_SQL                         1003
#define IDC_SENDSQL                     1004
#define IDC_ROLLBACK                    1005
#define IDC_ENDTRANS                    1006
#define IDC_RECORDSET                   1007
#define IDC_OPTION                      1008
#define IDC_DRIVER                      1009
#define IDC_NAME                        1010
#define IDC_SOURCENAME                  1011
#define IDC_DATABASENAME                1012
#define IDC_BROWSE                      1014
#define IDC_SETS                        1016
#define IDC_OPENNEW                     1017
#define IDC_CLOSE                       1018
#define IDC_VIEW                        1019
#define IDC_SETOPEN                     1021
#define IDC_TABLE                       1023
#define IDC_USESQL                      1024
#define IDC_USETABLE                    1025
#define IDC_SET                         1025

// Next default values for new objects
// 
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE        135
#define _APS_NEXT_COMMAND_VALUE         32771
#define _APS_NEXT_CONTROL_VALUE         1027
#define _APS_NEXT_SYMED_VALUE           101
#endif
#endif

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
United States United States
I work with C++, C#, Perl, PHP, HTML (with a lot of CSS), and a little bit of ASP.NET. I have been programming for 7 years.

I also enjoy translating Latin, and especially reading authors whose primary language was Latin, including Virgil (or Vergil for the Latinate spelling), Julius Caesar, Catullus, Cicero, and some others (like Martial). I enjoy classical music, most especially Mozart and Bach.

Comments and Discussions