Solved

Converting Pascal to Delphi

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses
Course of the Month11 days, 2 hours left to enroll

628 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