Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Converting Pascal to Delphi

Posted on 1998-07-17
2
Medium Priority
?
440 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
[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 4

Accepted Solution

by:
d003303 earned 30 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

688 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