Home > Back-end > This Incompatible types: 'PAnsiChar' and 'PWideChar compiler error. What should I do?
This Incompatible types: 'PAnsiChar' and 'PWideChar compiler error. What should I do?
Time:10-30
With Delphi XE compile the old version of the VCL, always appear the compiler error, excuse me, how to solve? Thank you very much!
CodePudding user response:
Used XE, possible only Settings like vs the character type can make a bad conversion
CodePudding user response:
Mainly, caused by the use of PChar Dephi7 PChar mean PAnsiChar, by D2010, default refers to PWideChar Therefore, you need to change the content for PAnsiChar PChar related.
CodePudding user response:
Agree with upstairs Pchar into PAnsiChar I now use the 2010 is in the same situation before
CodePudding user response:
Find a lot of control error even changed, XE still is not working
CodePudding user response:
I D7 code to D2010 above it's not a big problem, the string problem is like this