DllRegisterServer返回0x80070005 [英] The DllRegisterServer returns 0x80070005

查看:383
本文介绍了DllRegisterServer返回0x80070005的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我编码了一个基于H.264 DirectShow的解码器.我通过运行"regsvr32.exe diavc.ax"进行注册.它成功了.但是一些用户报告它失败,并显示以下消息:

I coded a H.264 directshow-based decoder. I register it by running the "regsvr32.exe diavc.ax" and it succeeds. But some users report that it fails with the following message:

模块"diavc.ax"已加载,但对"DllRegisterServer"的调用失败,错误代码为0x80070005.

The module "diavc.ax" was loaded but the call to "DllRegisterServer" failed with error code 0x80070005.

我该如何解决问题?

下一个代码是"DllRegisterServer",它非常简单.

The next code is the "DllRegisterServer", it is very simple.

STDAPI DllRegisterServer()
{

   返回AMovieDllRegisterServer2(TRUE);

STDAPI DllRegisterServer()
{

    return AMovieDllRegisterServer2( TRUE );

}

 

推荐答案

您的依赖项是什么?  您是否静态链接到CRT以避免对CRT DLL的依赖?

What are your dependencies?  Did you statically link to the CRT to avoid a dependency on the CRT DLL's?

如果它们运行的​​是Vista/Windows 7,请确保在尝试注册之前将其提升为UAC管理员特权.

If they are running Vista/Windows 7 make sure they elevate to UAC Administrator privileges before attempting to register.


这篇关于DllRegisterServer返回0x80070005的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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