现在不工作了 [英] not working now workikng
本文介绍了现在不工作了的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
此代码打开一个文件并读取它,然后将代码粘贴到编辑框中
this code opens a file and reads it, then paste the code in a edit box
CStdioFile file;
CFileException ex;
if(file.Open(meow, CFile::modeRead ,&ex))
{
CString strString;
while(file.ReadString(strString))
{
strFile += strString + _T("\r\n");
}
dad.SetWindowText(strFile);
file.Close();
}
喵喵是CSTRING路径... C:\\Users\ \ ****** \\Desktop \\\\1 - 复制(2)\\ coo.txt
喵喵路径不工作
为什么?
the meow is a CSTRING path ...C:\\Users\\******\\Desktop\\1 - Copy (2)\\coo.txt
meow path is not working
why?
推荐答案
变量喵应该是TCHAR *
查看CString GetBuffer和ReleaseBuffer方法。
Variable meow should be a TCHAR*
Have a look at the CString GetBuffer & ReleaseBuffer methods.
这篇关于现在不工作了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文