I am trying to get the local Appdata folder, and store it in a string. I seem to be doing something wrong with my variables though, since I am getting an access violation when I try to store the folderpath into a string.
Code:
PSTR buffer;
HRESULT hRes = SHGetSpecialFolderPathA(NULL, buffer, CSIDL_APPDATA, FALSE);
std::string executingPathFolder = buffer;
bufferpoint to what ?