如何使用MyDocumentsPath
的值并将其添加到urlPassed.txt
前面?
CHAR my_documents[MAX_PATH];
HRESULT result2 = SHGetFolderPath(NULL, CSIDL_PERSONAL, NULL, SHGFP_TYPE_CURRENT, my_documents);
CString MyDocumentsPath = my_documents;
ofstream outputFile;
outputFile.open("urlPassed.txt");
outputFile << szOutput << endl;