Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

ms-dos program

Posted on 2001-09-15
7
Medium Priority
?
146 Views
Last Modified: 2010-04-06
dear sir,

can i write ms-dos program by using delphi ? i tried to write console application in delphi that setted $AppType Console and compile it. when i tried to ran in dos mode, the message "you must run this program in win32 mode". is that meant delphi cannot write fully dos application ?
0
Comment
Question by:Explorer060599
7 Comments
 

Author Comment

by:Explorer060599
ID: 6484540
or maybe any component out there can support this issue?
0
 
LVL 22

Expert Comment

by:Mohammed Nasman
ID: 6484544
Hello

  As i know you can't do that with delphi, the Console application is 32bit application without GUI, so it can't run without windows

0
 
LVL 22

Expert Comment

by:Mohammed Nasman
ID: 6484546
If you want to develop application for dos, back to Turbo Pascal days ;o)
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 6

Expert Comment

by:MannSoft
ID: 6484587
You can use a free pascal compiler such as FreePascal (www.freepascal.org).  It will cross-compile for many targets actually.  But Ive had problems with it so dont use it often.

My favourite is VPascal (www.vpascal.com).  It was originally OS/2 only, but now also supports Win32 targets internally.  And with a few add-ons, there is also DOS and Linux target support.

There are many other good free compilers, Im sure.  But I havent used them so can't comment on them here :)
0
 
LVL 3

Expert Comment

by:cubud
ID: 6484996
This can only be done in a 16bit (real mode) compiler.  Delphi 1 was a 16 bit compiler but I don't know if it handled console apps or not.

Otherwise you need to use www.freepascal.org

Pete
====
http://www.HowToDoThings.com (Articles)
http://www.StuckIndoors.com/delphi (open source)
0
 
LVL 14

Accepted Solution

by:
AvonWyss earned 200 total points
ID: 6485611
cubud, sorry but you're wrong. There is, indeed, a 32-bit DOS extender which allows to convert Delphi (console) applications to plain DOS.

http://michael.tippach.bei.t-online.de/wdosx/

Freeware and certainly worth a look.
0
 
LVL 14

Expert Comment

by:AvonWyss
ID: 6485616
cubud, welcome to Experts Exchange.

I think it was not appropriate to make your post an answer because of the following:
* What you had written was already contained in earlier comments of other experts, thus you didn't contribute something new.
* Only post something as answer if you are "300% certain" that this is the one and only answer to the question, and no other exuert has answered it already (maybe as comment).

Comments can be accepted as answer by the person which asked the initial question, so that you don't have to be afraid of posting comments. If your comment is the one which answers the question best, you'll get rewarded even though you did not post an answer. Comnents do not lock the question for others, that's why most experts choose to comment only to leave other experts a change of seeing a question and posting.

For more information, please read http://www.experts-exchange.com/jsp/cmtyQuestAnswer.jsp
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Loops Section Overview
Suggested Courses

926 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question