Home > Back-end > Delphi2007 code upgrade to Delphi xe2 problems
Delphi2007 code upgrade to Delphi xe2 problems
Time:11-14
Is similar to the problem of incompatible type [DCC Error] Reader. Pas (99) : E2010 Incompatible types: 'NativeUInt' and 'Cardinal' How do I deal with? Please masters to guide you!
In addition, if there is a high PCSC read card version of the sample code, thank you!
CodePudding user response:
If you compile a program as a Win64 NativeUInt=UInt64, If you compile a program as a Win32 NativeUInt=UInt32
For Cardinal, whether it is compiled to Win64 program or Win32, Cardinal=Uint32
So these two data types are not compatible,
CodePudding user response:
Can put the Cardinal UNativeInt instead give it a try
CodePudding user response:
Instead of Cardinal THandle
Don't have much external control, it is recommended to use 10.2.3 Tokyo, compatibility is better than the old version