TCHAR szPath[MAX_PATH]; if(SUCCEEDED(SHGetFolderPath(NULL, CSIDL_PROGRAM_FILESX86|CSIDL_FLAG_CREATE, NULL, 0, szPath))) { PathAppend(szPath, TEXT("New Doc.txt")); HANDLE hFile = CreateFile(szPath, ...); }
SHGetFolderPath()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)