菜鸟送高分~错误信息是unexpected end of file in macro expansion

b8923704 2007-03-14 08:56:32
MS VC++ 6.0编译的错误是unexpected end of file in macro expansion
错误代码:
hwndButtonjian = CreateWindow (TEXT("button"), // window class name
TEXT ("-"), // window caption
WS_CHILD|WS_VISIBLE|BS_PUSHBUTTON, // window style
200, // initial x position
220, // initial y position
30, // initial x size
30, // initial y size
hwnd, // parent window handle
(NULL, // window menu handle
((LPCREATESTRUCT) lParam)->hInstance,// program instance handle
NULL); // creation parameters
...全文
1545 19 打赏 收藏 转发到动态 举报
写回复
用AI写文章
19 条回复
切换为时间正序
请发表友善的回复…
发表回复
sunnyes2008 2010-09-03
  • 打赏
  • 举报
回复
HWND CreateWindow(
LPCTSTR lpClassName, // registered class name
LPCTSTR lpWindowName, // window name
DWORD dwStyle, // window style
int x, // horizontal position of window
int y, // vertical position of window
int nWidth, // window width
int nHeight, // window height
HWND hWndParent, // handle to parent or owner window
HMENU hMenu, // menu handle or child identifier
HINSTANCE hInstance, // handle to application instance
LPVOID lpParam // window-creation data
);

参考一下
wwt861103 2009-08-28
  • 打赏
  • 举报
回复
第一个TEXT后面少了一个")"
todototry 2007-03-14
  • 打赏
  • 举报
回复
int main()
{
char szbuff[10];
ZeroMemory(szbuff, 10);
int ival = 21321;
_itoa_s(ival, szbuff, 10, 10);
cout << szbuff << endl;
return 0;
}
todototry 2007-03-14
  • 打赏
  • 举报
回复
int main()
{
char szbuff[10];
ZeroMemory(szbuff, 10);
int ival = 21321;
sprintf_s(szbuff, "%d", ival);
cout << szbuff << endl;
return 0;
}
b8923704 2007-03-14
  • 打赏
  • 举报
回复
嗯我在查~
goodluckyxl 2007-03-14
  • 打赏
  • 举报
回复
sprintf在帮助上是可以查到函数原型的
对着比较就行了
b8923704 2007-03-14
  • 打赏
  • 举报
回复
都是sprintf的错误。。。是不是用法错了?
b8923704 2007-03-14
  • 打赏
  • 举报
回复
昨天你睡觉了 就遇到这问题了。。。不过还有30多个错误。。。
b8923704 2007-03-14
  • 打赏
  • 举报
回复
晕了 你来了。。在上班呢??
todototry 2007-03-14
  • 打赏
  • 举报
回复
(NULL, // window menu handle
==============
这里多了个(
taodm 2007-03-14
  • 打赏
  • 举报
回复
重复发贴是很没意义的行为。
b8923704 2007-03-14
  • 打赏
  • 举报
回复
哪位大侠想要500分的 留下QQ,帮我改了错给你500分 感激ing。。这问题困绕我两天了
b8923704 2007-03-14
  • 打赏
  • 举报
回复
前面没有#IF啊,
goodluckyxl 2007-03-14
  • 打赏
  • 举报
回复
前面的#if后面没有结尾???
b8923704 2007-03-14
  • 打赏
  • 举报
回复
这样建按钮建了近20个,只有它报错~
ouyh12345 2007-03-14
  • 打赏
  • 举报
回复
宏只能是一行,如果是多行,则除最后行外,其它行要以'\'结尾.
检查一下TEXT宏
b8923704 2007-03-14
  • 打赏
  • 举报
回复
或者加我QQ 发你源码帮我看看,给你500分。。申请一个号自带点分。。我多申请几个给你分~
虽然麻烦点。。。
b8923704 2007-03-14
  • 打赏
  • 举报
回复
- -你来说挖,这么一句就想打发我。
iamcaicainiao 2007-03-14
  • 打赏
  • 举报
回复
参考《windoss程序设计》,查查看。

64,642

社区成员

发帖
与我相关
我的任务
社区描述
C++ 语言相关问题讨论,技术干货分享,前沿动态等
c++ 技术论坛(原bbs)
社区管理员
  • C++ 语言社区
  • encoderlee
  • paschen
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
  1. 请不要发布与C++技术无关的贴子
  2. 请不要发布与技术无关的招聘、广告的帖子
  3. 请尽可能的描述清楚你的问题,如果涉及到代码请尽可能的格式化一下

试试用AI创作助手写篇文章吧