[fpc-pascal] Converting StrLCopy to widestrings

Felipe Monteiro de Carvalho felipemonteiro.carvalho at gmail.com
Sat Nov 17 13:31:48 CET 2007

On Nov 17, 2007 1:25 PM, Marc Weustink <marc at dommelstein.net> wrote:
> First question, why is the copying needed ?
> Why isn't    lpStrFile := PWChar(FileNameWide);
> simply enough ?
> IMO, you're copying way to much.

That variable is only valid on the scope of the function, and we need
something more permanent.

Felipe Monteiro de Carvalho

More information about the fpc-pascal mailing list