Nethence Newdoc Olddoc Lab Your IP BBDock  


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

UnixWindowsOracleObsoleteHardwareDIYMechanicsScriptsConfigs

Getting started with Microsoft Visual C++ 6.0
 
 
Installation
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).
Refs.
http://msdn.microsoft.com/en-us/vstudio/aa718349.aspx
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=a8494edb-2e89-4676-a16a-5c5477cb9713
 
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
 
 
Usage
Build and execute,
Ctrl-F5
 
Automatic statement completion,
Ctrl-Alt-T
 
 
References
http://en.wikipedia.org/wiki/Visual_C%2B%2B
http://melem.developpez.com/tutoriels/api-windows/initiation-api-windows/?page=sommaire
http://www.winprog.org/tutorial/start.html
 

(obsolete, see the new doc)