📄 subject_42740.htm
字号:
<p>
序号:42740 发表者:chejie 发表日期:2003-06-05 15:25:57
<br>主题:为什么编译通不过?
<br>内容:两段这样的代码写在一个CPP文件里为什么编译不能通过啊(该CPP文件里只有着两个函数)?<BR>请指教:<BR>#include <math.h><BR>#include <direct.h><BR>/*************************************************************************<BR>BOOL WINAPI Template(LPSTR lpDIBBits, LONG lWidth)<BR>{<BR>......<BR>}<BR>BOOL WINAPI aaDIB(LPSTR lpDIBBits, LONG lWidth,)<BR>{<BR>...... <BR> <BR>}<BR><BR><BR><BR><BR><BR>--------------------Configuration: Catch_Pictures - Win32 Debug--------------------<BR>Compiling...<BR>Catch_Pictures.cpp<BR>e:\mydajie\cpro\catch_pictures\catch_pictures.cpp(29) : error C2146: syntax error : missing ';' before identifier 'WINAPI'<BR>e:\mydajie\cpro\catch_pictures\catch_pictures.cpp(29) : error C2501: 'BOOL' : missing storage-class or type specifiers<BR>e:\mydajie\cpro\catch_pictures\catch_pictures.cpp(29) : fatal error C1004: unexpected end of file found<BR>Error executing cl.exe.<BR><BR>Catch_Pictures.obj - 3 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>回复者:xiongli 回复日期:2003-06-05 15:47:17
<br>内容:#include "windows.h"<BR>#include "stdafx.h'<BR>
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:chejie 回复日期:2003-06-05 15:54:41
<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 + -