我正在尝试使用命令 regsvr32 dll_name.dll 注册 DLL,但出现以下错误
The module "Addition.dll" was loaded but entry point DLLRegisterServer was not found
Make sure that "Addition.dll" is a valid DLL or OCX file and then try again
谁能帮我找出问题所在吗?
最佳答案
每个要注册的 DLL 都必须具有 DLLRegisterServer 函数。每当您运行 regsvr32.dll DLL_NAME 时都会调用此函数。它基本上修改注册表,只做需要将此 dll 安装到系统中的事情。
从您的错误中可以明显看出,模块“Addition.dll”没有此功能。 如果是自定义的DLL,则添加此函数并再次运行。
该函数主要用于COM(组件对象模型)组件在系统中注册自身。不用作COM服务器的DLL不需要有这个函数。
关于windows-7 - 注册DLL时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14646736/