Compile for Dos

Posted on 2006-04-28
Last Modified: 2010-04-05
I've made a program in D7 that I want to run in an msdos 6.20 environment. When I try to run it now I get "This program must be run in Win32". Is there any way of compiling it so that it'll run in dos mode? It's a console app only using sysutils atm.

Question by:Aqueath
    LVL 12

    Accepted Solution

    a console application is something completely else than a dos executable. i think everything youre doing under delphi will compile to win32 images, since also sysutils finally point to winapi-calls. i doubt youre able to do this with delphi - you should head for turbo pascal instead.
    LVL 13

    Expert Comment

    not possible, Delphi is a compiler for Win32

    FreePascal might help you

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Join & Write a Comment

    A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
    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…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    731 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