Delphi XE3: what are the new types used for, MarshaledString and MarshaledAString?

In Winapi.Windows.pas Delphi XE3, many C types that were previously defined as PWideChar and PAnsiChar are now defined as MarshaledString and MarshaledAString respectively (e.g. PWChar , LPSTR ):

  PWChar = MarshaledString; LPSTR = MarshaledAString; 

Indeed, in System.pas , MarshaledString and MarshaledAString equivalent to PWideChar and PAnsiChar respectively,

  MarshaledString = PWideChar; MarshaledAString = PAnsiChar; 

but what is the background to this decision? I mean, why should Embarcadero redefine such C string types?

+6
source share
1 answer

Embarcadero is working on a next-generation mobile compiler. The changes you see are related to these efforts. Technical details have not yet been published, so no one who has no information about this can say anything else about it.

+4
source

All Articles