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 Platform SDK. If you are using Visual C++ 1.0 or later on Windows NT/Windows 2000, 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, and then perform the following steps:
CDSNBLD NDEBUG32
CDSNBLD DEBUG32
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.