[fpc-pascal] GetSaveFileNameA limited to 100 characters in default name

James Richters james.richters at productionautomation.net
Mon Jun 21 19:56:15 CEST 2021

>I would prefer to use 
> StrPLCopy( SaveAsFileNameBuffer, DefaulSaveAsFileName,
>instead of 
>  SaveAsFileNameBuffer:=Pchar(DefaulSaveAsFileName);

I'm curious what the difference is between StrPLCopy() and PChar()

I wonder if PChar() was my problem.. maybe I don't need the buffer, maybe I
just needed:
StrPLCopy( SaveAsFileName.lpstrFile, DefaulSaveAsFileName, Max_Path+1);


More information about the fpc-pascal mailing list