I\'m trying to write some info to the user\'s documents folder (eg. C:\\Documents and Settings\\[userName]), but I can\'t seem to find out how to grab the path programmatica
You could do this :
wchar_t *pUSERPROFILE; size_t len; _wdupenv_s( &pUSERPROFILE, &len, L"USERPROFILE" ); wstring userprofile = pUSERPROFILE; free (pUSERPROFILE);
_wdupenv_s MSDN