Wednesday, 28 August 2013

SHGetFolderPath Deprecated: What is the alternative?

SHGetFolderPath Deprecated: What is the alternative?

SHGetFolderPath Deprecated:
http://msdn.microsoft.com/en-us/library/bb762181%28v=VS.85%29.aspx
What is the alternative way to get the Application Folder in Windows?
SHGetFolderPath(NULL, CSIDL_COMMON_APPDATA, NULL, 0, szPath)
Aside from that, why do I get those errors when using this function:
Error 1 error C2065: 'CSIDL_COMMON_APPDATA' : undeclared identifier
Error 2 error C3861: 'SHGetFolderPath': identifier not found

No comments:

Post a Comment