Solved

Delphi 2 to Delphi 3 Migration

Posted on 1997-12-15
3
235 Views
Last Modified: 2012-05-04
I am attempting to take a Delphi 2 project to Delphi 3 and keep getting "Incompatable type Error 'String and Integer."
I get one of these errors for each unit in the project. It feferences the Classes.pas file. I am recompiling with the dpr, pas, dfm and res files only. Any Ideas?
0
Comment
Question by:jesusfreak
3 Comments
 
LVL 4

Expert Comment

by:itamar
ID: 1353699
Could you give us some piece of code ?
Thanks.
0
 
LVL 2

Accepted Solution

by:
Waldek earned 100 total points
ID: 1353700
This error maybe ocuured in line like

   raise SomeException.Create(LoadStr(SInsertLineError));

This will no longer work. My suggested change is to use


   raise SomeException.Create(
         {$IFNDEF VER100}LoadStr{$ENDIF}
                              (SInsertLineError));


which conditional on being compiled with Delphi 3 leaves out the "LoadStr"

In general all code making use of the constants declared in
CONSTS(.PAS/.DCU) will cause a compiler error: "Incompatible types:
'Integer' and 'String'"


0
 
LVL 5

Expert Comment

by:ronit051397
ID: 1353701
in www.Borland.com/devsupport/delphi/techdocs/migrate2to3.html
you have all the differrences between 2 and 3.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
PDF library for Delphi 2 119
Why can't I create any project with my delphi EXE file? 6 20
Performance of SQL statement 37 111
Breakpoint doesn't stop in my variable 3 23
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
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…

813 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

8 Experts available now in Live!

Get 1:1 Help Now