win ce 编译运行自定义控件提示:Result code: 0x80040154 错误解决
时间:2010-09-19 来源:世道
问题:
编译运行自定义win ce下的ocx文件提示:
CoCreateInstance of OLE control {2DAD60A1-76CF-4016-8C0D-2CB7D4FCBC2C} failed.
>>> Result code: 0x80040154
>>> Is the control is properly registered?
解决:
将创建windows ocx文件时系统自动生成的除resource.h, stdafx.h, stdafx.cpp, .rc, .rc2 , .vcproj, .def文件外的所有文件copy到win ce ocx文件夹并复盖原文件。然后在win ce下用regsvrce.exe注册ocx即可。
问题:在ce下用regsvrce.exe注册ocx文件时提示:错误
解决:
.idl文件下的第一个uuid值与应用程序初始化文件中的_tlid值不一致。修改为相同值即可.
相关阅读 更多 +