Table Copy Files

The following source files are included with the Table Copy sample. The source files are located in the <install directory>\SAMPLES\TABLECPY directory; the Table Copy executable file TABLECOPY.EXE is located in the <install directory>\BIN directory.

File name Description
CATALOG.ICO Catalog icon.
COLUMN.ICO Column icon.
COLUMNLONG.ICO BLOB Column icon.
COLUMNREAD.ICO ReadOnly Column icon.
COMMON.CPP Contains common routines for handling strings, converting to MBCS or WCHAR, quoting identifiers, and processing different data types. It also contains the static string messages.
COMMON.H Application header file.
DATASOURCE.CPP Connects to the data source. Includes functions for instantiating, setting properties, and initializing the OLE DB provider.
DATASOURCE.H Application header file.
ERROR.CPP Common error handling routines for the application.
ERROR.H Application header file.
INDEX.ICO Index icon.
LIST.H Application header file.
PRIMARYKEY.ICO Primary Key icon.
PROGRESS.CPP Handles display of the Table Copy Progress dialog box.
PROGRESS.H Application header file.
PROPERTY.CPP Retrieves properties from the provider. Includes functions for freeing properties and VARIANT elements of property structures.
PROPERTY.H Application header file.
RESOURCE.H Resource include file.
SCHEMA.ICO Schema icon.
SPY.CPP Contains routines for keeping track of memory allocation and release.
SPY.H Application header file.
STEP1.CPP Handles the dialog boxes, buttons, and lists in the first step of the Table Copy sample. Functions in this file call IDBInitialize::Initialize to connect to the provider, call schema functions to retrieve rowsets containing table column metadata information, and process the schema rowsets through IRowset.
STEP2.CPP Handles the dialog boxes, buttons, and lists in the second step of the Table Copy sample. Functions in this file retrieve the INDEXES schema rowset and process the results, displaying them to the user.
STEP3.CPP Handles the dialog boxes, buttons, and lists in the third step of the Table Copy sample. Functions in this file connect to the target data source and get the name for the new table from the user.
STEP4.CPP Handles the dialog boxes, buttons, and lists in the fourth step of the Table Copy sample. Functions in this file present options for the user to control how the new table is created.
SYNONYM.ICO Synonym icon.
SYSTABLE.ICO System Table icon.
TABLE.CPP Main file for copying the table. Includes functions for calling IDBLiteral::GetLiteralInfo to retrieve literal quote characters, creating and executing the SELECT statements, retrieving and mapping data type information, and executing the CREATE TABLE and INSERT TABLE statements.
TABLE.H Application header file.
TABLE.ICO Table icon.
TABLE_CO.ICO Icon for the Table Copy sample.
TABLECOPY.CPP Provides the main entry point for the Table Copy sample.
TABLECOPY.DSP Project file.
TABLECOPY.H Application header file.
TABLECOPY.MAK Application NMAKE file.
TABLECOPY.RC Table Copy sample resource files.
TABLECOPY.RC2 Version file for Table Copy sample.
TYPE.ICO Type icon.
VERSION.H Version file for Table Copy sample.
VIEW.ICO View icon.
WINMAIN.CPP Main window and application source file. Functions in this file provide support for the windows displayed in the various steps of the Table Copy wizard.
WINMAIN.H Application header file.
WIZARD.CPP Contains common routines for supporting the buttons for moving between the various steps of the wizard.
WIZARD.H Application header file.