Thu, 15 Dec 2005 20:00:17 -0500 from Tom Porterfield
I believe it is now 260 in XP, not enough longer to make it worth
recompiling the program.
A user of the program has unfortunately got a directory structure
with paths longer than that. I couldn't create one myself, but I sent
him a new version of the program that aborts on paths longer than 259
characters, and it did confirm that. I don't know how he created
them, but he's running some version of Windows NT.
So I guess I should no longer trust _MAX_PATH in the C++ compiler,
and I need to recode that section of the program to allocate storage
for paths dynamically.
Has anybody got a recent C++ compiler, one issued since Windows XP?
If so, could you check FILENAME_MAX in <stdio.h> and _MAX_PATH in
<stdlib.h> and tell me the values, just to satisfy my curiosity? (In
MSVC++ 5.0 they're both 260, which is supposed to include the
terminating zero byte.)