读书人

建立界面`

发布时间: 2012-02-21 16:26:23 作者: rapoo

建立界面```求助``
刚才一位高手说我所用的方法不是MFC.
我建了一个工程[类型为 WIN32 APPLICATION]

然后在里面自建RC[MENU等].窗口也自建.

我仿照例子在WIN MAIN注册.

却说如INITCOMMONCONTROLSEX之类的变量无法认识

然后意识到应是#include <commctrl.h> //公共控件类的问题[是吗?]

但是又出现以下错误
f:\program files\microsoft visual studio\vc98\include\commctrl.h(26) : error C2146: syntax error : missing '; ' before identifier 'HRESULT '
f:\program files\microsoft visual studio\vc98\include\commctrl.h(26) : fatal error C1004: unexpected end of file found
Error executing cl.exe.

我不知道该怎么做了.求助~~!

那现在这样的问提应该如何解决呢?

PS:怎样放分?

[解决办法]
把#include <commctrl.h> 的文件的代码贴上来看看
[解决办法]
#include <windows.h>
#include <commctrl.h>
[解决办法]
#include <windows.h>

读书人网 >C++

热点推荐