On May 6, 2006, at 2:16 AM, Jasper van de Gronde wrote:


How about using SHGetSpecialFolderPath? Should work on pretty much any Windows system and is reasonably easy to use.


Example usage (prints the location of the My Documents directory for the current user):

#define _WIN32_IE 0x0400


Nope!

fails on Windows 95 and Windows NT 4.0 that don't have extra newer stuff installed.

:-)

(notice that say I have version such-and-such of Internet Explorer or later)