Solved

Converting DOS based Pascal to Windows

Posted on 2003-11-17
2
513 Views
Last Modified: 2010-04-16
I have a program which was written years ago in DOS Turbo Pascal. It is on a Windows 95 machine but its getting old and sluggish. Can anyone advise how this can be converted to a more up to date version of Windows e.g. XP and what I would need to achieve this.

Many thanks

James
0
Comment
Question by:jflah
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 11

Accepted Solution

by:
bcladd earned 50 total points
ID: 9763052
Turbo Pascal 5.5 (available for free from borland.com) can compile executables that run on WinXP machines. Note that there are features that do NOT work on faster machines. I don't know the final status of BGI, for example, but for a while fast clock speeds made BGI-based programs lose their minds. If your program interacts directly with the hardware you may well have problems, too.

Now if the question is how do I move an old, DOS looking program to the GUI age, I would look long and hard at a current version of Delphi. You are in for more rewriting rather than porting in this case and you may still have problems directly moving hardware-centric code to Win32.

Hope this helps, -bcl
0
 

Expert Comment

by:soen-anita
ID: 9775699
It work on Windows Xp. If you compile the source code and received 'error division by zero'
it means something wrong with BGI. You can patch your code.
For further information, see this link
http://www.brain.uni-freiburg.de/~klaus/pascal/runerr200/

May help you

Me..
0

Featured Post

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.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi & Indy 10 Whois over Web Proxy 3 1,223
Enable/Disable the Windows 7 'START' button 9 1,511
How do you invoke TCharHelper 1 2,033
Delphi 2010 auto upgrade has "lost" a file 7 1,088
While it may be true that the internet is a place of possibilities, it is also a hostile environment lurking with many dangers. By clicking on the wrong link, trusting the wrong person or using a weak password, you are virtually inviting hackers to …
Recently, Microsoft released a best-practice guide for securing Active Directory. It's a whopping 300+ pages long. Those of us tasked with securing our company’s databases and systems would, ideally, have time to devote to learning the ins and outs…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

697 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