Link to home
Start Free TrialLog in
Avatar of gk082597
gk082597

asked on

Compile for DOS in Delphi 2.0

Hi,

I want to compile a program so is runs as a plain old DOS
program, not aware of windows. It needs to run in a existing
DOS box or just under DOS (without the WIN95 interface) without starting all the GUI stuff. I don't want to use
the {$APPTYPE CONSOLE} since it starts a new
DOS Box.

Any idears ?

GK

Avatar of JimBob091197
JimBob091197

Hi

I don't think that Delphi 2 & 3 can create "plain old DOS programs."  Delphi 2 & 3 can only create GUI apps (the norm) or Win32 console apps.  Plain old DOS apps are 16-bit, and I don't think Delphi 2 & 3 can create 16-bit apps.  You may need to resort to Delphi 1...

Regards,
JB
Avatar of gk082597

ASKER

Hi Jim Bob,

I don't need it to be 16-Bits, 32-Bit is fine. It just that whatever i try, as soon as i start the program in a full screen DOS box it returns to the WIN95 Desktop and the the (Full screen) DOS box gets minimized.

GK
That is very odd.  I haven't had that problem.  Is your program running inside the minimized DOS box, or does Windows open a 2nd window for your app?

Are you using any Windows units (e.g. forms, controls, etc.) in your console app?  It sounds like it's not getting compiled to a proper console app...

JB
Windows opens a second window for my application. I think i removed all the Forms, Controls etc Units from the uses statement but i need to check that (thats going to be tonight). I'll let you know tomorrow.

GK
ASKER CERTIFIED SOLUTION
Avatar of jackb022197
jackb022197

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I do not have the availability to check if your solution works (so i can't grade it). It seems okay though so i'll give you the points.

GK