Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

what is "MAX_PATH"

Status
Not open for further replies.

nbgoku

Programmer
May 25, 2004
108
US
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.

What's unclear?..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top