The file \Samples\Odbc\Query\Qurydemo.mak is set up for compilation within 32-bit environments using a Microsoft or Microsoft-compatible C compiler. You use the \Samples\Odbc\Query\Qurydemo.bat file to set up the proper environment and invoke the appropriate compiler and linker.
Note The Querydemo.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, Query Demo will not compile with the provided Querydemo.mak. Instead, you must use the makefile generated by Visual C++.
To build the sample, change to the \Samples\Odbc\Query directory, and then perform the following steps:
QURYDEMO NDEBUG32
QURYDEMO DEBUG32
Unrecognized arguments to Qurydemo.bat will halt compilation with a warning.
Qurydemo.bat calls NMAKE, the Microsoft Program Maintenance Utility provided with Microsoft C version 7.0 or later, on the file Qurydemo.mak to rebuild the Qurydemo.exe file. If Qurydemo.mak is unmodified, Build.bat will rebuild the original Qurydemo.exe sample.
For information about using NMAKE, see your C compiler tools documentation.