How to Build Convert DSN Demo

The file \Samples\Odbc\Convdsn\Cdsnbld.mak is set up for compilation in the 32-bit environment using a Microsoft or Microsoft-compatible C compiler. You use the \Samples\Odbc\Convdsn\Cdsnbld.bat file to set up the appropriate environment and invoke the appropriate compiler and linker.

Note   The CDSNBLD.MAK file assumes that you have installed the Win32 SDK. If you are using Visual C++ 1.0 or later on Windows NT, Convert DSN Demo will not compile with the provided CDSNBLD.MAK. Instead, you must use the makefile generated by Visual C++.

To build the sample, change to the directory where the batch file exists, then:




Unrecognized arguments to CDSNBLD.BAT will halt compilation with a warning.

CDSNBLD.BAT calls NMAKE, the Microsoft Program Maintenance Utility provided with Microsoft C version 7.0 or later, on the file CDSNBLD.MAK to rebuild the CONVDSN.EXE file. If CDSNBLD.MAK is unmodified, CDSNBLD.BAT will rebuild the original CONVDSN.EXE sample.

For information about using NMAKE, see your C compiler tools documentation.