Nethence Newdoc Olddoc Lab Your IP BBDock  

Warning: those guides are mostly obsolete, please have a look at the new documentation.


Getting started with Microsoft Visual C++ 6.0
During installation (here Microsoft Visual C++ 6.0 standard edition),
check "register environment variables" (vcvars32.bat)
Note. what about recommended windows nt system symbols (.dbg) ?
Then install SP5 + "Visual C++ 6.0 Processor Pack" (to fix issues on Windows XP) or directly SP6 (extract and run setupsp6.exe).
Note. the following is added to your PATH,
D:\apps\Microsoft Visual Studio\Common\Tools\WinNT;D:\apps\Microsoft Visual Studio\Common\MSDev98\Bin;D:\apps\Microsoft Visual Studio\Common\Tools;D:\apps\Microsoft Visual Studio\VC98\bin
New project and workspace
Create a Win32 application project and workspace,
Ctrl-N (File > New)
project name: winapp1
Projects tab > Win32 application
an empty project
Note. projectname.prj is the project
Note. projectname.dsw for project's workspace
New C source file (not C++)
Create a C source file,
Ctrl-N (File > New)
Files tab > C++ source file
file name: winapp1.c
like e.g.,
#include <windows.h>
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nCmdShow)
MessageBox(NULL, "Goodbye, cruel world!", "Note", MB_OK);
return 0;
note. using _MCBS macro on vc6 by default
Build and execute,
Automatic statement completion,

(obsolete, see the new doc)