You can simply force the integer type to cardinal as:
 
Cardinal(MyIntegerVariable)
 
Faby
----- Original Message -----
Sent: Tuesday, March 07, 2006 9:04 AM
Subject: [advanced_delphi]how to migrate from delphi 3 to delphi 2005

hello,
 
We have project in delphi 3 on windows98 . Now we want to migrate this project from  delphi 3 to delphi 2005 on
WindowsXp.
 
But we r getting error : E2033 Types of actual and formal var parameters must be identical.
 
This is due to HModule being declared as system.Cardinal instead of integer as it was earlier.
 
Hmodule, the Windows Handle is of type integer in the Delphi 3 code and it was running fine on win98.
 
On recompiling in Delphi 2005 on winXP, the compiler and the help insight state that the windows.pas has these same
parameters of type cardinal.
Any idea why and when this has happened and what is the workaround ?
Are there any other memory issues/upgrades in windows API due to a change in OS from Win 98 to Win XP ?
 
Any help from your side would greatly be appreciated.
Thanks.
 
With regards,
Sonia.


Jiyo cricket on Yahoo! India cricket
Yahoo! Messenger Mobile Stay in touch with your buddies all the time.

SPONSORED LINKS
Basic programming language C programming language Computer programming languages
The c programming language C++ programming language List of programming languages


YAHOO! GROUPS LINKS




Reply via email to