How to start a project in Microsoft Visual C++
-
Click on the icon for Microsoft Visual C++ version 6 or Start -> Programs
-> Microsoft Visual Studio 6.0 -> Microsoft Visual C++ 6.0
-
menu File/new
-
select the Projects tab
-
select Win32 Console Application
-
fill in a project name (like HW1)
-
choose a location to store your project.
-
make sure create new workspace is selected
-
click ok
-
select an empty project
-
click finish
-
click ok
-
menu File/new
-
select the Files tab
-
select C++ source file
-
give it a name (like hw1)
-
make sure add to project is checked
-
verify that the location is correct.
-
click ok
-
You are now in the file window for writing the program.
-
add the comment at the top to identify the assignment (see How to submit
homwork 1)
-
copy the Time file from the web page and paste it.
-
Try running it as is. (Menu Build/Build, then Menu Build/Execute.)
-
Delete my main and put in your own.
How to start a project in Code Warrior
-
Click on the icon for Code Warrior IDE or Start -> Programs -> Code Warrior
x.x
-> CodeWarrior IDE
-
menu File/new
-
select Win32 C++ Stationary
-
fill in a project name (like HW1)
-
chose a location to store your project
-
click ok
-
On the New Project Window click oin the + next to Win32 Console App
-
select C++ Console App
-
click ok
-
In the HW1.mcp window
-
click on the + next to Source
-
double click on hello.cpp and a file will open
-
add the comment at the top to identify the assignment (see How to submit
homwork 1)
-
menu File/SaveAs
-
rename it something like hw1.cpp
-
copy the Time file from the web page and paste it.
-
Try running is as is. (green triangle)
-
Delete my main and put in your own.
When you want to re-open your project to work on later, double click
on the project or workspace, .dsw in Visual C++ or .mcp in Code Warrior,
not on the cpp file.