Hey, I'm a bit new to C++ and am writing a simple program. My program will be using some folders in
Windows 7 path: C:\Users\%username%\Appdata\Local...
Windows XP path: C:\Documents and Settings\%username%\Local Settings\Application Data...
Unix: /home/%username%/.hiddenfolder/...
now the problem is windows. In my header file, I can do a nice
#ifdef _WIN32
to differentiate from windows and unix versions of the program, but during runtime I need to find if the user is useing XP or Vista/7 to set a correct path. Is there a standard way of doing this?