Solved

Converting DOS based Pascal to Windows

Posted on 2003-11-17
2
505 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
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

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

Read about the ways of improving workplace communication.
Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

776 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