Solved

Delphi 2 to Delphi 3 Migration

Posted on 1997-12-15
3
234 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi: how to send PJL commands to printer 3 89
Delphi 2 49
DBGrid or StringGrid ? 6 71
Installshield for Embarcadero EX 10.1 Berlin 4 20
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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

920 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

14 Experts available now in Live!

Get 1:1 Help Now