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

James Richters james.richters at productionautomation.net
Mon Jun 21 23:22:20 CEST 2021


>It's best to think of these in two parts. The Windows API part and then the interfacing with Pascal part.
>SaveAsFileName.lpstrFile = long pointer to a (C) string filename buffer
>This buffer isn't created for you, you provide it and tell Windows it's size.

Thank you for the explanation, that explains why it crashed without the buffer but was fine with it.  For some reason I thought SaveAsFileName.lpstrFile was a Pchar Variable. 

James  



More information about the fpc-pascal mailing list