我在一个项目中初始化已经成功并能够正常使用,可是在另一个项目中却总是失败。
代码如下:
static INITCOMMONCONTROLSEX iccex = {sizeof(INITCOMMONCONTROLSEX),
ICC_LINK_CLASS};//超链接控件类
if (!InitCommonControlsEx(&iccex))
{
MessageBox(NULL, TEXT("初始化公共控件失败"), TEXT("关闭"), MB_OK);
break;
}
为什么总是弹出"初始化公共控件失败"这个对话框呢?
代码如下:
static INITCOMMONCONTROLSEX iccex = {sizeof(INITCOMMONCONTROLSEX),
ICC_LINK_CLASS};//超链接控件类
if (!InitCommonControlsEx(&iccex))
{
MessageBox(NULL, TEXT("初始化公共控件失败"), TEXT("关闭"), MB_OK);
break;
}
为什么总是弹出"初始化公共控件失败"这个对话框呢?
解决方案 »
- vc调用activex 控件REALPLAYER G2 CONTROL,可以编译通过,但是程序无法运行
- 散分,我自己有两个难题,都解决了,需要人帮我回复下,我好把分散了
- STL 中队列 浅问》》
- 请问如何从命令行生成可被其它程序调用的lib文件
- 求微软dos下TCP/IP开发包,谢谢
- 怎么延时50ms亚
- 请教:关于AfxBeginThread函数的使用
- 求平面摆放算法!
- 求找一个目录浏览的函数
- LINK : fatal error LNK1104: cannot open file "test.lib"。其中test.lib有,我应如何摆放他?才能找到!
- 大虾请进!windows下访问网络共享触发什么消息啊?
- 怎样确定鼠标光标在编辑框中的位置?
另外,与IE没有关系,因为我在另一个项目中已经使用过这个控件了。
好奇怪啊?我在另一项目中已经使用过了,这次怎么就不行了呢?
难道与项目设置有关?
好奇怪啊?我在另一项目中已经使用过了,这次怎么就不行了呢?
难道与项目设置有关?
============ 哪会是那一个文件呢?
Registers specific common control classes from the common control dynamic-link library (DLL). BOOL InitCommonControlsEx(
LPINITCOMMONCONTROLSEX lpInitCtrls
);Parameters
lpInitCtrls
Address of an INITCOMMONCONTROLSEX structure that contains information specifying which control classes will be registered.
Return Values
Returns TRUE if successful, or FALSE otherwise. Res
Note The effect of each call to InitCommonControlsEx is cumulative. For example, if InitCommonControlsEx is called with the ICC_UPDOWN_CLASS flag, then is later called with the ICC_HOTKEY_CLASS flag, the result is that both the up-down and hot key common control classes are registered and available to the application. Requirements
Version 4.70 and later of Comctl32.dll Windows NT/2000: Requires Windows 2000 (or Windows NT 4.0 with Internet Explorer 3.0 and later).
Windows 95/98/Me: Requires Windows 98 (or Windows 95 with Internet Explorer 3.0 or later).
Header: Declared in commctrl.h.
Import Library: comctl32.lib.