[Lazarus] With new Win32 manifest LongPathAware I cannot make long filename
Michael Van Canneyt
michael at freepascal.org
Fri Nov 23 15:52:48 CET 2018
On Fri, 23 Nov 2018, AlexeyT via lazarus wrote:
> This app cannot make 2nd folder (it can make 1st) and make file. Error
> on file saving. why? new manifest option is used. Win10.
>
> { TForm1 }
>
> const
> s1='w123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012';
> base='c:\work\';
>
> procedure TForm1.Button1Click(Sender: TObject);
> var f: TStringList;
> begin
> ForceDirectories(base+s1+'\'+s1);
ForceDirectories is in the FPC RTL.
It probably would need to obey the \\?\ prefix if long paths are to be
supported.
Michael.
More information about the Lazarus
mailing list