eviltoylet
April 17th, 2003, 12:51 PM
I was wondering how the following segment worked. there was no definition of MAX_PATH anywhere. Is it some internal definition that I'm not aware of?
[QUOTE]
OPENFILENAME ofn;
char szFileName[MAX_PATH] = "";
//Some structure definitions are here
...
ofn.nMaxFile = MAX_PATH;
I was wondering if there was anyway to do the same thing to get the maximum length of the filename , without the path?
thanks.
[QUOTE]
OPENFILENAME ofn;
char szFileName[MAX_PATH] = "";
//Some structure definitions are here
...
ofn.nMaxFile = MAX_PATH;
I was wondering if there was anyway to do the same thing to get the maximum length of the filename , without the path?
thanks.