Solved

Converting Pascal to Delphi

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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

759 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now