Let me try to actually answer the subject of ou post... That function dates back to 16-bit Windows, and my guess is that since only FAT-style 8.3 filenames were supported, Win32 inherited that behavior. Also, note that the GetModuleFileName(...) function is one of the few that is capable of returning filepaths longer than MAX_PATH, so do not assume that MAX_PATH is always going to be long enough... Peace! -=- James
If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
DeleteFXPFiles & CheckFavorites (Please rate this post!)