what is MAX_PATH? is the largest name a file can have as in hi.txt? or is it the largest name of a file + its adress as in C:\1\hi.txt? or is it somethingelse? i find uses of it everywhere, but no simple explanation
1. _MAX_PATH, not MAX_PATH
2. MSDN:
These constants define the maximum length for the path and for the individual fields within the path.
Constant Meaning
_MAX_DIR Maximum length of directory component
_MAX_DRIVE Maximum length of drive component
_MAX_EXT Maximum length of extension component
_MAX_FNAME Maximum length of filename component
[b_MAX_PATH[/b] Maximum length of full path
The sum of the fields should not exceed _MAX_PATH.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.