Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to setup Borland C++ Dev Suite for 16-bit DOS development

Status
Not open for further replies.
Jun 2, 2003
24
US
Anyone know how to setup Borland C++ Dev Suite for 16-bit DOS development.

Thanks.
 
Which version are you trying to setup?

I think I read somewhere that 4.5 was the last version that produced dos code, but I may be wrong on that.

I'm currently using 4.52 for occasional dos programming.

It was free on the front of a magazine about 7 years ago...
 
So start the thing up.

Go to Project: New Project

In the pathname box, my installation comes up with the project file in C:\bc45\bin\proj0001.ide

This seems to a singularly curious place to put a project, so I generally use the backspace key to generate a project name like

C:\bc45\fred99.ide

Notice that the target name also changes...

Target Type is "Application [.EXE]"

Platform is "Dos (Standard)"

This is your bog standard dos program without overlays or anything complicated...

Target Model defaults to "Large"

You can select Small, Tiny, Compact, Medium or Huge if you know the implications of those... (speed & size).

Floating point can be Emulation, None or Floating Point (i.e. the coprocessor) Default is Emulation.

Click "ok"

The project appears with "fred99.cpp" associated with the target "fred99.exe".

If you want to write C++, leave it.

For a C program, then right click on "fred99[.cpp]" and select "delete node", then click ok to confirm.

Add a C program by right clicking on "fred99[.exe]" and typing "fred.c" in the File Name box.

Click Ok.

Bring up the file window for "fred99.c" by left clicking on the "fred.c" in the project window.

Type the following:

Code:
#include <stdio.h>
int main ()
{
printf("hello world\n" );
}

into "fred.c"

Alt F S to save "fred.c", then

Alt P b to build the program.

You can execute it using the debugger or just navigate to c:\bc45 in a dos box & do it from there...

The exe may end up in c:\bc45\bin... the way mine just did.

Enjoy.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top