The Vcvars32.bat batch file sets up the Visual C++ version 4.0 command-line development environment.
The following information describes how to use Vcvars32.bat.
vcvars32 {x86 | m68k | mppc}
Specifies the target processor.
x86 | Intel x86 |
m68k | Motorola 68K |
mppc | Power PC |
Important
You should use no option or the default x86 option because Windows 95 development is specific to Intel processors.
MSDEVDIR
The MSDEVDIR environment variable specifies the base directory of Microsoft Developer Studio. It is usually \Msdev.
VCSOURCE
The VCSOURCE environment variable is set to path of the Visual C++ version 4.0 CD-ROM or net drive. It allows you to leave the help files, libraries, and include files on the CD-ROM or on a network drive. It is cleared on exit.
VCOSDIR
The VCOSDIR environment variable is set to the operating system since some of the Visual C++ version 4.0 tools are operating system dependent. It is set to one of the following values:
WIN95 | For Windows 95 |
WINNT | For Windows NT |
It is cleared on exit.
PATH
The PATH environment variable is set to the following values:
%MSDEVDIR%\BIN | The Visual C++ version 4.0 tools directory. |
%MSDEVDIR%\BIN\%VCOSDIR% | The Visual C++4.0 operating-system dependent tools directory. |
%PATH% | The value of PATH before the batch file was run. |
If you have the VCSOURCE environment variable set in the batch file, the PATH environment variable includes the following paths at the end (searched last):
%VCSOURCE%\BIN | |
%VCSOURCE%\BIN\%VCOSDIR% |
INCLUDE
The INCLUDE environment variable is set to the following values:
%MSDEVDIR%\INCLUDE | The Visual C++ version 4.0 include directory. |
%MSDEVDIR%\MFC\INCLUDE | The Microsoft Foundation Classes (MFC) include directory. |
%INCLUDE% | The value of the INCLUDE environment variable before the batch file was run. |
If you have VCSOURCE set in the batch file, the INCLUDE environment variable will include the following paths at the end (searched last):
%VCSOURCE%\INCLUDE | |
%VCSOURCE%\INCLUDE\MFC |
LIB
The LIB environment variable is set to the following:
%MSDEVDIR%\LIB | The Visual C++ version 4.0 library directory. |
%MSDEVDIR%\MFC\LIB | The Microsoft Foundation Classes (MFC) library directory. |
%LIB% | The value of the LIB environment variable before the batch file was run. |
If you have VCSOURCE set in the batch file, the LIB variable will include the following paths at the end (searched last):
%VCSOURCE%\LIB | |
%VCSOURCE%\MFC\LIB |