我的dll中的类型库已损坏(TYPE_E_CANTLOADLIBRARY 0x80029c4a) [英] Type library in my dll is corrupt (TYPE_E_CANTLOADLIBRARY 0x80029c4a)

查看:140
本文介绍了我的dll中的类型库已损坏(TYPE_E_CANTLOADLIBRARY 0x80029c4a)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

ATL DLL的编译问题具有内置的类型库(通过rc文件中的include),通常,该dll可以成功构建(意味着成功注册),有时可以构建该dll,但是类型库已损坏,如果要注册, TYPE_E_CANTLOADLIBRARY(0x80029c4a)将返回.然后使用VS2008打开该dll,然后输入"TYPELIB".项目消失,其下的内容输入"REGISTRY".

我正在寻找任何建议和解决方案,

解决方案

你好,

请尝试以下操作

1)切换到资源视图窗口,右键单击[ProjectName.rc节点],选择资源包含".验证以下行是否在编译时指令"框中:
                             1 TYPELIB [ProjectName] .tlb

2)发生错误时,请检查构建日志,查看是否有任何错误或警告

此致,
张荣春
在论坛中 MSDN订户支持
如果您对我们的支持有任何反馈,请联系 msdnmg@microsoft.com  


A compile issue for ATL DLL which has the type library built in(through an include in the rc file), generally, this dll can be built successfully(mean register successfully), sometimes this dll can be built, but the type library is corrupt, if to register, TYPE_E_CANTLOADLIBRARY(0x80029c4a) will return. Then to open this dll with VS2008, "TYPELIB" item disappeared and the content under it entered "REGISTRY".

I'm looking for any suggestions and resolution, thx

解决方案

Hello,

Please try the following things

1) Switch to Resource View Window, right-click [ProjectName.rc node], choose "Resource Includes". Verify the following line is in the Compile-time Directives box:
                1 TYPELIB [ProjectName].tlb

2) When the error happens, please check build log, see if there is any error or warning

Regards,
Rong-Chun Zhang
MSDN Subscriber Supportin Forum
If you have any feedback on our support, please contact msdnmg@microsoft.com 


这篇关于我的dll中的类型库已损坏(TYPE_E_CANTLOADLIBRARY 0x80029c4a)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆