I'm trying to parse a SHGetSpecialFolderPath
into a string, a System::String^
to be precise.
I'm now using this code:
TCHAR appDataPath;
SHGetSpecialFolderPath(0, appDataPath, CSIDL_APPDATA, false);
I've tried things like this, but it doesn't work either:
LPWSTR appDataPath;
SHGetSpecialFolderPath(0, appDataPath, CSIDL_APPDATA, false);
I just want to get a System::String^
like this:
System::String ^ loc_inst = appDataPath + "\\inst\\info.xml";