注册DLL时报错:模块已加载,但对DllRegisterServer的调用失败,错误代码为 0x80070005
清泛原创

错误代码0x80070005是没有使用管理员权限进行注册。
因此,使用管理员权限注册DLL即可解决,步骤如下:
Win键,搜索cmd,右键“以管理员身份运行”:

cd /d “dll所在的目录”
regsvr32.exe /i xxx.dll

COM 模块 DllRegisterServer 0x80070005
上一篇:菜单的背景颜色
下一篇:ATL简单对象(实现了IObjectWithSite接口)在网页中使用,如何取得IE窗口句柄?