I\'m converting my applications to Delphi 2009 and faced an intriguing issue with some calls that need to convert a string (wide) to AnsiString.
Here\'s an example to de
Instead of using type String, use RawByteString:
String
RawByteString
s: RawByteString; s := LoadSomeRegularString(usually a string type); PAnsiChar(s) <<< all fine.