⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 subject_31498.htm

📁 一些关于vc的问答
💻 HTM
字号:
<p>
序号:31498 发表者:陳章民 发表日期:2003-03-04 22:12:25
<br>主题:Win32 Application project
<br>内容:建立一個Win32 Application project<BR>為何兩個狀況都出錯???<BR><BR>&lt;1&gt;Problem:<BR><BR>#include &lt;afxwin.h&gt;<BR><BR>//using namespace std;<BR><BR>int main()<BR>{<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;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>&lt;2&gt;Problem:<BR><BR>#include &lt;afxwin.h&gt;<BR><BR>using namespace std;<BR><BR>int main()<BR>{<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;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;&nbsp;&nbsp;//使用std前要先定义,见#include &lt;yvals.h&gt;<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 + -