?
Solved

Delphi 2 to Delphi 3 Migration

Posted on 1997-12-15
3
Medium Priority
?
241 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
[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
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 200 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
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

765 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