Solved

Converting Pascal to Delphi

Posted on 1998-07-17
2
419 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
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…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

831 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