MDAC 2.5 SDK - OLE DB Testing


 

Building a Tool (TableDump or Privlib) or Test

It is important to build PrivLib and TableDump before trying to build any OLE DB tests.

To build a tool or test

  1. Using Microsoft® Visual C++®, use Open Workspace on the .dsp. For PrivLib, the .dsp is located in <install directory>\Conformance\Tools\PrivLib.

  2. 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.)

  3. Update your system path to include the following directories at the beginning of the path list:

    InstallDirectory\Conformance\Tests\Proposed\OLEDBTests\Include

    InstallDirectory\Conformance\Include

    InstallDirectory\Include

    InstallDirectory\Conformance\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.

  4. After you have built Privlib.lib, copy it to a directory in your \lib path (set as the default target).

  5. 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" in this guide.