Solved

Converting Pascal to Delphi

Posted on 1998-07-17
2
422 Views
Last Modified: 2010-04-04
Can I convert sources codes wroten in Turbo Pascal 6.0 to Delphi 2.0, and how?
0
Comment
Question by:mmilan
2 Comments
 
LVL 4

Accepted Solution

by:
d003303 earned 10 total points
ID: 1358075
In general, yes. You will have to change the declaration of objects to the Delphi object declaration style.
Also, watch for pascal code and inline assembler stuff that does direct port/hardware access (will not run on NT).
Also code that relies on the memory structure of variables must be modified. E.g. Integer in TP6 is 16 bit long, in D2 it is 32 bit long, so you have to declare it as ShortInt.
Direct memory access differs, because TP6 is 16 bit. 16 bit code uses offset, 32 bit code linear memory pointers.
There is a seperate section for 16/32 bit code ports in the D2 online documentation.

Slash/d003303
0
 

Author Comment

by:mmilan
ID: 1358076
Try again!

0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

730 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