[fpc-pascal]Win32: converting lptstr to string

Matt Emson memsom at interalpha.co.uk
Thu Apr 22 17:27:07 CEST 2004


> Hi
> 
>  How do I convert a lptstr var (win32) to a string var ?

lptstr is just a PChar. Use the usual method you use for PChar...

Y := StrPas( X ); 

Y := String(X);

Would probably both work in Delphi mode - though StrPas is more universal.






More information about the fpc-pascal mailing list