Mind taking a look at how I created the folder to see if there's anything really wrong with it?
Its working (at least on my computer, didn't have a chance to test it on another) but its my first time using these and to be honest I don't fully understand it. It was kinda of a nightmare to get it to work, since there is so many variations out there. I had no idea which one to use nor WHY use it.
- getfolderpath | getknownfolderpath | getspecialfolderpath | GetEnvironmentVariable
Anyway as long as its not really wrong, I will leave it as it is and add this to the list of thing I really need to learn about in the future.
TCHAR szPath[MAX_PATH];
if (SUCCEEDED(SHGetFolderPath(NULL, CSIDL_APPDATA, NULL, 0, szPath)))
{
// Append product-specific path
PathAppend(szPath, _T("\\Lkc\\"));
CreateDirectory(szPath, NULL);
}
PathAppend(szPath, _T("saveData.dat"));
std::string hhh;
hhh.clear();
for (int i = 0; i < MAX_PATH; i++) {
hhh += szPath[i];
}
vEcras[5]->fichPath = hhh;
vEcras[3]->fichPath = hhh;
vEcras[1]->fichPath = hhh;