读txt
创建的一个console程序,一直报错,高手给看看啊!#include "afx.h"
#include "iostream.h"
#include "afxwin.h"
void main()
{
CStdioFile file;
if (file.Open("h:\\book\my project\CFileOpen\a.txt",CFile::modeRead))
{
CString str;
for (;file.ReadString(str);)
{
AfxMessageBox(str);
}
}
}
错误提示:
Linking...
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex
Debug/newone.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.
newone.exe - 3 error(s), 0 warning(s)
谢谢大家了!