问题描述
我编码了一个基于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 );
}
推荐答案
如果它们运行的是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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!