Share via

Does the MFC class CFindFile support long path

Dudu 161 Reputation points
2021-02-13T07:47:05.93+00:00

Usually by win32 api using file and folder path, there is a limitation of MAX_PATH on length of the path. Developers can break the limitation by using the Unicode version api and prepending path by \?\

Does the CFindFile support the long path that breaks the limitation of MAX_PATH?

Thanks.

Developer technologies | C++
Developer technologies | C++

A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.

0 comments No comments

Answer accepted by question author

Viorel 127K Reputation points
2021-02-13T08:58:18.827+00:00

The source code of CFileFind, which can be found in subfolders of Visual Studio, uses the _MAX_PATH constant (260). Therefore, the support of long paths seems implausible.

Was this answer helpful?

1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.