Posted by DelphiMan on March 23, 2006 In Reply to How to migrate from Delphi3 to Delphi2005 posted by Bijal on March 07, 2006 : We have project in delphi 3 on windows98 . Now we want to migrate this project from
delphi 3 to delphi 2005 on WindowsXp. HMODULE has the same type as HINST and THANDLE. At least since Delphi 4, HINST is of the type LONGWORD, not of type INTEGER. See the following two lines that I copied from Windows.pas of D4: HINST = type LongWord; CARDINAL is a "generic" integer type, whose size is not guaranteed over different Delphi versions. Currently, CARDINAL has the same capacity as LONGWORD, which is a fundamental unsigned 32 bits integer type. Tip: when you declare variables of type HMODULE, do not declare them as CARDINAL or LONGWORD or INTEGER,
but simply as HMODULE: |