Coding resources
- Why Visual C++ 6.0?
- Visual C++ 6.0 quick guide
- Obtaining Visual Studio:
- Resources for current students (restricted access,
not open to the public)
-
MagicDisc is one of several free virtual CDROM emulators
- Another CDROM emulator is
daemon tools (get the
free lite version)
- Visual Studio is available on university lab machines (in library, Martin,
etc.) under Departmental Applications -> CES -> Microsoft Visual Studio
- Microsoft Dreamspark
is one way for students to download the latest Microsoft IDE
- The MSDN on-line help
contains extremely helpful documentation on the Win32 API and MFC. (don't
install MSDN)
-
Rename a VC++ project
- VS6.0 on Windows7:
- Although VS6.0 is
not officially supported on Vista or later operating systems, it works
just fine on Windows7. Windows7 Professional (or Enterprise, which is
just the bulk version) contains a Windows XP mode virtual machine to run XP
executables natively.
- If this is not in your distribution, simply download "windows xp mode"
from
http://www.microsoft.com/windows/virtual-pc/download.aspx Download/install
both files in sequence: "Windows XP Mode" and "Windows Virtual PC". When
you first run Windows XP Mode, while that is initializing, it will tell you
how to install and run apps in Windows 7.
- Note: Be sure to install the latest service pack (SP6) for VS6.0.
Also, some people have had difficulty double-clicking the .dsw file, but
manually opening via File.Open works fine.
- Visual Studio 6 SP6 works fine on Windows 7, 64-bit.
- VS6.0 on Vista:
- Some users have been
successful installing and using VS6.0 on vista64. Several students
in the class have been successful, too. Others have complained
that installing VS6.0 on 64-bit Vista breaks the control panel.
- To install on Vista, right-click on the file and select "Run as
Administrator". Do this even if you are already Adminstrator. When the
installation on Vista says that it is unsuccessful, just ignore the warning;
it should work just fine. When running the program on Vista, there many
be a warning saying that it is not compatible. Just ignore the warning.
-
Visual Studio 6 on Vista
- Installing a virtual machine for Windows XP is one way to avoid the
incompatibility problem with Vista.
- During installation on Vista, message that you need to update Java library then
reboot. This was seen on a machine borrowed from the library. No known
solution.
- Common VC++ 6.0 problems:
- Compiling:
- To get rid of warnings, #pragma warning ( disable : 4786 )
- Linking:
- Program won't link. Make sure under Project Settings that 'Use MFC
in shared DLL' is checked.
- Program won't link (On Vista or Windows 7): "LINK : fatal error
LNK1004: cannot open file 'Debug/project.exe'". Here is the problem: By
default, VC++ 6.0 puts projects in a directory like C:/Program Files/Microsoft
Visual Studio/MyProjects/. But on Vista, when you try to navigate to
this directory, it does not exist. How VC++ can create a project that
can compile (even though it does not link) in a directory that does not exist
is beyond me. But the solution is simple: Create a new project in
a directory that does exist.
- Running your program:
- cannot find .dll files; maybe you put a space in your path by accident?
- To load macros into Visual Studio 6.0:
- Load macro file
- Click Tools.Macros.Options.Loaded Files.Browse
- Select cvl-macros.dsm (or your own file). Be sure checkbox next to
file is checked.
- Set keyboard shortcuts
- Click Tool.Customize.Keyboard.Category.Macros
- For each macro, select it, press the keystroke combination mentioned in
the description into the window entitled, "Press new shortcut key", then
press Assign
- Exit Visual Studio to save settings
- Learning C++: