0

According to this document, it is possible to create and use files with names exceeding 256 chars. I have actually tested this before, and it works fine, also for Unicode charaters.

But my question is there any possibility to force class CFileDialog to accept and show folders, where path is longer than 256 characters?

Changes at OFN structure, before calling DoModal() function, doesn't give any affect:

FileDialog.GetOFN().lpstrInitialDir = _T("\\\\?\\P:");
FileDialog.GetOFN().nMaxFile=1024;
FileDialog.GetOFN().nMaxFileTitle=256;
if(FileDialog.DoModal() == IDOK)
  DoSomething()

Any suggestions?

4

0 回答 0