I just started making the jump from D7 to 2009 .NET.
Simple question, how do you get a string from a PChar?
In D7, a simple typecast works. For example:
procedure Dummy;
var
myPChar : PChar;
myString : String;
begin
...
{ Some code that asigns something to myPChar }
myString := String(myPChar);
end;
In Delphi 2009, this gives an error message:
E2089 Invalid typecast
THis sounds like it should be simple, but I can't work it out, and
google's no help.
Thanks!
Bourgui