DOS protected to Delphi 32-bit

Question:
At present we have a large application that runs under DOS protected mode. It is written in Borland Pascal 7.0. We have a longer term project to convert it to compile in Delphi 2.0. This application creates its own visual interface using the DOS 80×50 screen. It populates it by first writing to a memory buffer, then copying to the video memory.

It is of great importance that we be able to compile this program in Delphi 2.0; however, we do not wish to convert all to proper Windows API due to time contraints. We wish to be able to use the text screen as usual but from inside Delphi 2. How can we achieve this?

Another related problem. can we run the program as usual in a dos box dos 95 or NT but which are 16 bit and use 32bit routines from some other libraries?

Thanx for your assistance.

Answer:
Please don’t take this the wrong way, but you’re defeating the purpose ofDelphi ? and Windows, for that matter ? by running your program in aDOS box. I realize you’ve spent a lot of time building the custominterface. But what’s more important ? what your program does, or what itlooks like?

You’ll spend more time converting your screen drawingroutines to Windows-compatible routines (yes, even in a DOS box, you’ll haveto use WinAPI calls) than if you bit the bullet and created your formsfrom scratch. It’s an unbelievably quick process to build an entire UI in Delphi, so Idon’t think you’ll lose much time.

Share the Post:
Share on facebook
Share on twitter
Share on linkedin

Overview

The Latest

microsoft careers

Top Careers at Microsoft

Microsoft has gained its position as one of the top companies in the world, and Microsoft careers are flourishing. This multinational company is efficiently developing popular software and computers with other consumer electronics. It is a dream come true for so many people to acquire a high paid, high-prestige job

your company's audio

4 Areas of Your Company Where Your Audio Really Matters

Your company probably relies on audio more than you realize. Whether you’re creating a spoken text message to a colleague or giving a speech, you want your audio to shine. Otherwise, you could cause avoidable friction points and potentially hurt your brand reputation. For example, let’s say you create a

chrome os developer mode

How to Turn on Chrome OS Developer Mode

Google’s Chrome OS is a popular operating system that is widely used on Chromebooks and other devices. While it is designed to be simple and user-friendly, there are times when users may want to access additional features and functionality. One way to do this is by turning on Chrome OS