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

📄 subject_42381.htm

📁 vc
💻 HTM
📖 第 1 页 / 共 4 页
字号:
<br>内容:简单错误<BR>CString str;<BR>&nbsp;&nbsp;&nbsp;&nbsp;p-&gt;GetWindowText(str);<BR>&nbsp;&nbsp;&nbsp;&nbsp;if(str.GetString()[0]=='0'&amp;&amp;str.GetString()[1]==NULL)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;p-&gt;SetWindowText("1");<BR><BR>中str是CString的一个对象,CString类中根本没有GetString()这个方法,当然报错误。<BR>把if(str.GetString()[0]=='0'&amp;&amp;str.GetString()[1]==NULL)<BR>改成:<BR>if(str[0]=='0' &amp;&amp; str[1]==NULL)就可以了
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:咖啡甜茶 回复日期:2003-06-04 01:47:38
<br>内容:可是不知道怎么会事?我按你的说法改了后有出现新的问题拉!<BR><BR><BR>编译结果:<BR>--------------------Configuration: WINCOUNT - Win32 Debug--------------------<BR>Compiling resources...<BR>Compiling...<BR>Stack.cpp<BR>h:\microsoft visual studio\vc98\mfc\include\afxv_w32.h(119) : warning C4005: '_WIN32_WINDOWS' : macro redefinition<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;e:\程序\计算器\calc_1\wincount\stdafx.h(22) : see previous definition of '_WIN32_WINDOWS'<BR>stdafx.cpp<BR>h:\microsoft visual studio\vc98\mfc\include\afxv_w32.h(119) : warning C4005: '_WIN32_WINDOWS' : macro redefinition<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;e:\程序\计算器\calc_1\wincount\stdafx.h(22) : see previous definition of '_WIN32_WINDOWS'<BR>wincount.cpp<BR>wincountDlg.cpp<BR>E:\程序\计算器\calc_1\wincount\wincountDlg.cpp(785) : warning C4715: 'CwincountDlg::PreTranslateMessage' : not all control paths return a value<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>libcd.lib(crt0.obj) : error LNK2001: unresolved external symbol _main<BR>WINCOUNT___Win32_Debug/WINCOUNT.exe : fatal error LNK1120: 3 unresolved externals<BR>Error executing link.exe.<BR><BR>WINCOUNT.exe - 4 error(s), 3 warning(s)
<br>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -