char* pFileName="kkk.txt";
CStdioFile f1;
if(!f1.Open(pFileName,CFile::modeCreate|CFile::modeWrite|CFile::typeText))
{
#ifdef _DEBUG
afxDump<<"unable to open file"<<"\n";
#endif
}kkk.txt在vc这个工程的文件夹中,为何始终打不开?说unable to open file
CStdioFile f1;
if(!f1.Open(pFileName,CFile::modeCreate|CFile::modeWrite|CFile::typeText))
{
#ifdef _DEBUG
afxDump<<"unable to open file"<<"\n";
#endif
}kkk.txt在vc这个工程的文件夹中,为何始终打不开?说unable to open file
解决方案 »
- 为什么会有异常发生?
- 关于控件问题
- 请问有人有能编译通过飞鸽传书源代码的,我急用
- 在程序当中引入Ado的库msado15.dll,再引入Word怎么会出问题??
- Dao访问Acess2000又出问题。。
- 如何在动态修改菜单里某一项的Context!
- 怎么把tab键的控制权交出来 关键词(TAB , child ,子窗口 ,键盘控制,焦点)
- 牛哥们问下 EXE中想直接调用MFC扩展DLL类对话框 怎么调用给下调用
- 有没有研究PDF文件格式的人
- 看看大家的基本功:大写TRUE 和 小写true 的区别
- vc++高级编程里的源程序(附smtp源程序)是不是有问题?问题解决就结贴!!!
- list类 是否能任意位置加入图标或图片
#ifdef _DEBUG
afxDump<<"unable to open file"<<"\n";
#endif是什么意思呀? 或去掉这几行试试.
fp=fopen("kkk.txt","wb");
fread(....);
fwrite(....);
fclose(fp);
afxDump<<"unable to open file"<<"\n";
#endif
应该是一个编译开关吧
#ifdef _DEBUG
afxDump<<"unable to open file"<<"\n";
#endif
只要是在DEBUG状态就显示这个出错信息
然后不带开文件直接返回
只要是在DEBUG状态就显示这个出错信息
然后不带开文件直接返回