Solved

ms-dos program

Posted on 2001-09-15
7
136 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
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
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 50 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

815 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now