CString值,但想放入const char *。怎么做?

时间:2011-08-12 08:55:29

标签: visual-c++

如何使用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;

0 个答案:

没有答案