Link to home
Start Free TrialLog in
Avatar of DelphiRulez
DelphiRulez

asked on

converting Delphi 5 to Delphi 2010 code ?

When compiling my Delphi 5 code in Delphi 2010, i receive the following error messsages

1.)

Implicit string cast from 'ShortString' to 'string'

it occure on the following routine

CompareText(PropInfo^.Name, P^.PropertyName)


how to fix??

2.)

 Incompatible types: 'Char' and 'AnsiChar'

it occure on the following

 if winexec(pchar(key),show)<32 then
        raise exception.create('Couldn''t launch default browser');

how to fix?
Avatar of DelphiRulez
DelphiRulez

ASKER

i added second question and raised points to 500
ASKER CERTIFIED SOLUTION
Avatar of Mahdi78
Mahdi78
Flag of Algeria image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial