Microsoft KB Archive/152536

{|
 * width="100%"|

DOCERR: Ddkenv.bat Called Before VC++ and MASM Batch Files

 * }

Q152536

-

The information in this article applies to:


 * Microsoft Win32 Device Driver Kit (DDK) Windows 95

-

SUMMARY
The Windows 95 Device Driver Kit (DDK) documentation erroneously states that in order to set the build environment, you should call the ddkenv.bat file first before calling the Visual C++ and MASM batch files. The order of these calls is incorrect and should be reversed.

Due to the way batch files construct the build environment, the MASM batch file new-vars.bat, typically located in the \masm611\binr directory, should be called first.

The Visual C++ batch file should be called second. For 16-bit versions of Visual C++, use the msvcvars.bat file, typically located in the \msvc\bin directory. For 32-bit versions of Visual C++, use the vcvars32.bat file, typically located in the \msdev\bin directory.

The ddkenv.bat file, typically located in the \ddk directory, should be called third.