Building a Tool (TableDump or Privlib) or Test
Note
To obtain the conformance tests, you must install the standalone MDAC 2.8 SDK. The conformance tests are currently not included with Windows DAC in Windows Vista.
It is important to build PrivLib and TableDump before trying to build any OLE DB tests.
To build a tool or test
Using Microsoft Visual C++, use Open Workspace on the .dsp. For PrivLib, the .dsp is located in <install directory>\Conformance\Tools\PrivLib.
Add all the include directories and all the lib directories for this version of the SDK to your Visual C++ directory. (To do this in Visual C++, on the Tools menu, click Options and then click Directories.)
Update your system path to include the following directories at the beginning of the path list:
InstallDirectory\Conformance Tests\OLEDB\Include
InstallDirectory\Conformance Tests\OLE DB\Include
InstallDirectory\Inc
InstallDirectory\Conformance Tests\Lib
For Visual C++ 5.0 users, build PrivLib using the default target.
For Visual C++ 6.x users, change the default target to "privlib - Win32 x86 Debug" and then build.
To build an OLE DB test on an Intel machine, build the test using the Debug MBCS target. For Visual C++ 5.0 users, this target should be the default target. For Visual C++ 6.x users, change the default target and then build.
After you have built Privlib.lib, copy it to a directory in your \lib path (set as the default target).
Create an initialization file by using the TableDump program found in the \Tools subdirectory. For more information about the TableDump utility, see Generating Initialization Files Using the TableDump Utility.