I. If your program only has one .CPP file, you can use
the following steps to enable your program to run in windows
mode.
-
Choose the "File|New|Project" option from the C++ menu
bar. (In Borland 4.5 choose the "Project|NewProject" option from the
C++ menu bar);
-
In the "Project Path and Name" box type the name of your program
WITHOUT the .CPP extension. (If you use the .CPP extension you
will DESTROY your source code.) Note that the
"Target Name" box gets filled in automatically.
-
In the "Target Type" box choose "EASYWIN"
-
Click on "Advanced" and click on ".rc" and ".def" to turn off the
check marks (if needed).
-
Click on "OK" in the "Advanced Options" screen and
then "OK" AGAIN in the "New Target" screen.
Hit CTRL F9 (Shown as "RUN" under the "Debug" menu item) to compile
and link your program. Do this over and over until you are free from
errors, at which point your program will automatically run.
NOTE: You only need to make a new
project ONCE for each program you write.
II. For programs with more than one .CPP
file:
-
Follow steps 1 through 5 as above. (In step 2 above,
when it says "type the name of your program", type the name of the file
that contains your 'main'.)
-
At this point you should have a "Project" window open at
the bottom of your screen. The line at the top of this window should
include the word "[.exe]". With your right mouse button click on this
line. A pop-up window will appear. Choose "Add Node".
-
Find a .CPP file that you need for this program and
click on it. Then choose "OK". This file should appear in the "Project"
window under the "[.exe]" line.
-
Repeat steps 2 and 3 as many times as you need to to get
all the required files listed in the "Project"
window. |