Running SOS in Borland C++, Version 5
You can run the program from the DOS command line, which doesn't require you to choose EasyWin, or ANY type of project application.
Simply open a DOS window, make it full screen and type this:
C C++
bcc sos.obj os.c bcc sos.obj os.cpp
OR compile your project separately first
bcc -c os.c bcc -c os.cpp
then link them
bcc sos.obj sos.obj
Either way, run it by typing
sos
at the prompt.
If you want to send output to a file or to the printer, use redirection
sos > c:\myfiles\sos.out
or
sos > prn
Running SOS in Microsoft Visual C++, Version 6
If you are working with Visual C++, and you have trouble with the linker finding ontrace() or offtrace(), change the prototypes to the following:
ontrace();
offtrace():
1. Go to File menu > New... > Projects Tab
choose Windows Console Application
2. It asks "What kind of console application do you want to make?"
chose "empty project"
3. This creates a workspace.
Then go to Project menu > Add To Project > Files >
for C: add os.c and sos.obj (lastest version on my Website)
for C++: add os.cpp and soscpp.obj (latest version on my Website)
4. To build the project, go to Build menu and select
Build projecname.exe (you supply the name)
This creates an executable (either in the same directory as the project's directory, or in the debug directory inside the project's directory).
5. Finally to run the program, run the .exe file from the DOS prompt, opened full screen,
and redirect the output to an output file:
projectname > sos.out