MDAC 2.5 SDK - OLE DB Samples


 

Building the Sample Consumer

The file SampClnt.mak is set up for compilation with NMAKE, the Microsoft Program Maintenance Utility provided with Microsoft Visual Studio. Sample Consumer must have access to the following OLE DB files:

Oledb.h

Oledberr.h

Oledb.lib

Verify that these files are on the path referred to by the INCLUDE environment variable.

The following example syntax builds a debug version of Sample Consumer on the Intel x86 platform based on the Win32 (x86) Console Application configuration.

NMAKE /f "sampclnt.mak" CFG="sampclnt - Win32 x86 Debug"

To build a release version of Sample Consumer on the Intel x86 platform based on the Win32 (x86) application configuration, use this syntax:

NMAKE /f "sampclnt.mak" CFG="sampclnt - Win32 x86 Release"

For additional information about using NMAKE, see the Microsoft Visual Studio documentation.