QuikTest: ODBC Auto-Test DLL Sample

Click to open or copy the files for the QuikTest sample.

This sample has the following parts:

File Description
Custom.c Shows how an ODBC auto test DLL may be written and subsequently run via the ODBC Test application.
Custom.h Contains the defines required for the resource strings in Custom.rc. This file is optional for an auto test DLL.
Dllstub.c Generic module that contains the entry points required to compile a DLL.
Quiktest.c Quick Test of the basic functionality of an ODBC driver.
Autotest.h Contains constants and prototypes required to compile a custom Auto Test DLL.

Building SDK Samples

This sample uses the following keywords:

_crt_init; _ltot; _sntprintf; _tcschr; _tcscpy; _tcslen; _tcsnccat; _tcsnccmp; _tcsncmp; _tcsstr; _tcstod; _tcstok; _tcstoul; _tstrtime; _ttoi; _ttol; aborttest; allocatememory; allochdbc; allochenv; allochstmt; allowedtype; autotestdesc; autotestfunc; autotestname; bindallcolumns; bindfetchcolumns; bintohex; buildcreatestmt; buildinsertstmt; canallochdesc; checkconformancelevel; checkdata; checkdataresults; checkdescop; checkdescrecord; checkdescriptor; checkerrs; checktest; cleanup; clearerrorqueue; closehandle; cmpodbctochar; compareansitounicode; compareansiunicoderesults; comparedescfield; comparedescriptor; comparewithexpected; connect; count; createdescrecord; createparamquery; createthread; cvtchartoodbc; descbindcol; descbindparameter; diagretcheck; displayallerrors; displayerror; displaytestname; dodisplayinfodesc; dohelloworld; dosimpleconnect; drophdbc; drophenv; droptable; errshandle; execendtran; finderror; freestmt; fulldisconnect; getbit; getdiagrecs; getdmversion; geterrors; getqbit; getrcstring; getrowcnt; getsomedata; gettypeinfo; globalalloc; globalfree; globalhandle; globallock; globalunlock; ignoretype; inittest; insertonerow; irowsetrow%; is3xdriver; libmain; lstrcat; lstrcmp; lstrcmpi; lstrcpy; lstrlen; max; memcmp; memcpy; min; multibytetowidechar; numitems; qtdisplayerror; qtmakedata; rc_notsuccessful; rc_successful; releasememory; resethstmt; retcheck; retcodetotchar; retrievedata; returncheck; searchforerror; selectfromtable; selectfromtablefetch; selectorof; setconnectionattributes; seterrorcondition; setstatementattributes; settablename; sql_len_data_at_exec; sql_succeeded; sqlallocconnect; sqlallocenv; sqlallochandle; sqlallocstmt; sqlbindcol; sqlbindparam; sqlbindparameter; sqlbrowseconnect; sqlcancel; sqlclosecursor; sqlcolattributes; sqlcolumnprivileges; sqlcolumns; sqlcolumnsa; sqlcolumnsw; sqlconnect; sqlconnecta; sqlconnectw; sqlcopydesc; sqldatasources; sqldescribecol; sqldescribeparam; sqldisconnect; sqldriverconnect; sqldrivers; sqlendtran; sqlerror; sqlexecdirect; sqlexecdirecta; sqlexecdirectw; sqlexecute; sqlextendedfetch; sqlfetch; sqlfetchscroll; sqlforeignkeys; sqlfreeconnect; sqlfreeenv; sqlfreehandle; sqlfreestmt; sqlgetconnectattr; sqlgetconnectoption; sqlgetcursorname; sqlgetdata; sqlgetdescfield; sqlgetdescrec; sqlgetdiagfield; sqlgetdiagrec; sqlgetenvattr; sqlgetfunctions; sqlgetinfo; sqlgetstmtattr; sqlgetstmtoption; sqlgettypeinfo; sqlmoreresults; sqlnativesql; sqlnativesqla; sqlnativesqlw; sqlnumparams; sqlnumresultcols; sqlparamdata; sqlparamoptions; sqlprepare; sqlprimarykeys; sqlprocedurecolumns; sqlprocedures; sqlputdata; sqlrowcount; sqlsetconnectattr; sqlsetconnectoption; sqlsetdescfield; sqlsetdescrec; sqlsetenvattr; sqlsetparam; sqlsetscrolloptions; sqlsetstmtattr; sqlsetstmtoption; sqlspecialcolumns; sqlstatistics; sqltableprivileges; sqltables; sqltablesa; sqltablesw; strcat; strcmp; strcpy; supported; switch; szlogprintf; szmessagebox; szwrite; testbindparam; testconnectattr; testconnectionoptions; testcopydesc; testcursorname; testdata; testdescdefaults; testdiagfield; testdiagrec; testendtran; testenvattr; testextendedfetch; testfetchscroll; testgetdescfield; testgetdescrec; testlargequery; testlikequery; testmetadata; testmixedansiunicode; testnumrescols; testojcap; testonethread; testquickrebind; testsearchedquery; testsetdescfield; testsetdescrec; testsqlbrowseconnect; testsqlcolumnprivileges; testsqldatasources; testsqldescribeparam; testsqldrivers; testsqlforeignkeys; testsqlmoreresults; testsqlnativesql; testsqlnumparams; testsqlparamoptions; testsqlprimarykeys; testsqlprocedurecolumns; testsqlprocedures; testsqlsetconnectattr; testsqlsetscrolloptions; testsqlsetstmtattr; testsqlspecialcols; testsqlstatistics; testsqltableprivileges; testsqltables; teststmtoptions; testthreading; testusedesc; text; threadloop; toupper; tstlibmain; unlockdata; values; verifyindex; waitformultipleobjects; wcscat; wcscpy; wcslen; wep; widechartomultibyte; wsprintf