cpstrnew branch (was Re: [fpc-devel] Freepascal 2.4.0rc1 released)

dmitry boyarintsev skalogryz.lists at gmail.com
Mon Nov 9 16:42:44 CET 2009

On Mon, Nov 9, 2009 at 6:30 PM, Martin Schreiber <fpmse at bluewin.ch> wrote:
> WideString could be reference counted on all platforms and the current not
> reference counted Windows WideString could be renamed to OLEString in order
> applications which don't need different encodings in strings don't suffer
> from the performance and memory requirement penalty of the complicated
> multi-encoding-multi-char-size string.

you can use the following:

uses mytypes; // use the unit in your project

{$ifdef MSWindows}
  OleString = WideString;
  WideString = UnicodeString;


More information about the fpc-devel mailing list