I am having some difficulty getting the path to a users 'My Documents'. I have tried several ways but this seems to be the closest to succeeding (only 1 error.) I assumed that I had included the correct headers but I get an undeclared identifier. I would greatly appreciate some help to get me back on track.
error C2065: 'SHGetFolderPath' : undeclared identifierCode:char * szPath[MAX_PATH]; // From MSDN // CSIDL_PERSONAL or L"::{450d8fba-ad25-11d0-98a8-0800361b1103}" if (( SHGetFolderPath( hwnd, CSIDL_PERSONAL , NULL, 0, szPath ) ) ) { // do something usefull... }