为什么我的DLL未能注册? [英] Why is my DLL failing to register?

查看:197
本文介绍了为什么我的DLL未能注册?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在VS2005建立一个项目,我的几个DLLs无法注册。我在Visual Studio中得到的错误消息是:


项目:错误PRJ0019:工具从注册ActiveX控件返回错误代码。 ..


这是很模糊的。当我通过命令行手动注册DLL(使用 regsv32.exe ,我得到以下错误:


LoadLibrary(test.ocx)失败 - 此应用程序由于应用程序配置不正确而无法启动,重新安装应用程序可能会解决问题。


我对犯罪的.ocx文件运行了Dependency Walker( depends.exe ),但它没有显示任何明显的问题。 / p>

我也做了重新构建,但我仍然遇到同样的问题。



解决方案

Microsoft最近发布了ATL的安全更新(KB971090) 。它是在MSVS2005sp1之上的不更新,它是编译时和运行时兼容性断路器。检查你的建筑环境是否有这个补丁。



参考文献:




I am building a project in VS2005 and several of my DLLs are failing to register. The error message I am getting in Visual Studio is:

Project : error PRJ0019: A tool returned an error code from "Registering ActiveX Control..."

which is nicely vague. When I register the DLL manually through the command line (using regsv32.exe, I get the following error:

LoadLibrary("test.ocx") failed - This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix the problem.

I ran Dependency Walker (depends.exe) on the culprit .ocx file but it isn't showing any obvious problems.

I have also done a re-build but I'm still getting the same problem.

Any suggestions as to how I could determine the cause of this failure to register?

解决方案

Microsoft had recently released a Security Update for ATL (KB971090). It is un update on top of MSVS2005sp1 and it's both compilate-time and runtime compatibility breaker. Check if your building environment has this patch.

References:

这篇关于为什么我的DLL未能注册?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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