Show whole topic Jul 21, 2014 11:50 am
alzi Offline
Developer, Moderator
Registered since: Aug 12, 2007
Location: Ditzingen (nahe Stuttgart)


Subject: Re: For DEV: Compilation with MSVC2013
I do compile with VS2013 on Windows 8.1 as well and it works without problems here (I do not even get a warning).

You are right that "SHGetFolderPath" is deprecated, but it should still be available for backwards compatibility. The documentation says for Vista and higher it is just a wrapper around "SHGetKnownFolderPath".

The documentation for "SHGetKnownFolderPath" says that the minimum client version is Vista, so if I understand it correctly the binary will not work any longer on Windows XP if we use that function. Since I do not have an XP PC, I can not test that (would need to set up a VM for that).

So I'm not sure what the best solution would be. I have not very much experience with cross platform home directory stuff.

Maybe can use an environment variable, just like we do for linux. "%USERPROFILE%" should be the right one, but I do not know how robust this solution would be.
Albert Ziegenhagel