📄 subject_31498.htm
字号:
<p>
序号:31498 发表者:陳章民 发表日期:2003-03-04 22:12:25
<br>主题:Win32 Application project
<br>内容:建立一個Win32 Application project<BR>為何兩個狀況都出錯???<BR><BR><1>Problem:<BR><BR>#include <afxwin.h><BR><BR>//using namespace std;<BR><BR>int main()<BR>{<BR><BR> return 0;<BR><BR>}<BR><BR>--------------------Configuration: mytest - Win32 Debug--------------------<BR>Compiling...<BR>unin.cpp<BR>Linking...<BR>nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex<BR>nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex<BR>Debug/mytest.exe : fatal error LNK1120: 2 unresolved externals<BR>Error executing link.exe.<BR><BR>mytest.exe - 3 error(s), 0 warning(s)<BR><BR><BR><2>Problem:<BR><BR>#include <afxwin.h><BR><BR>using namespace std;<BR><BR>int main()<BR>{<BR><BR> return 0;<BR><BR>}<BR><BR>--------------------Configuration: mytest - Win32 Debug--------------------<BR>Compiling...<BR>unin.cpp<BR>C:\tmp\mytest\unin.cpp(3) : error C2871: 'std' : does not exist or is not a namespace<BR>Error executing cl.exe.<BR><BR>mytest.exe - 1 error(s), 0 warning(s)<BR>
<br><a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p>
<hr size=1>
<blockquote><p>
<font color=red>答案被接受</font><br>回复者:tjhe 回复日期:2003-03-04 23:30:35
<br>内容:Win32 Application project??不能是main();<BR><BR>using namespace std; //使用std前要先定义,见#include <yvals.h><BR>
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -