Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/opencv/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Windows 7 注册DLL时出错_Windows 7_Windows_Command Line_Window - Fatal编程技术网

Windows 7 注册DLL时出错

Windows 7 注册DLL时出错,windows-7,windows,command-line,window,Windows 7,Windows,Command Line,Window,我试图用命令regsvr32 DLL\u name.DLL注册DLL,但我发现以下错误 已加载模块“Addition.dll”,但 未找到入口点DLLRegisterServer 请确保“Addition.dll”是有效的dll或OCX文件,然后重试 再次 有人能帮我找出问题所在吗?要注册的每个DLL都必须具有DLLRegisterServer函数。只要运行regsvr32.dll\u NAME,就会调用此函数。它基本上修改了注册表,只是做了一些需要将这个dll安装到系统中的事情 从您的错误可以

我试图用命令regsvr32 DLL\u name.DLL注册DLL,但我发现以下错误

已加载模块“Addition.dll”,但 未找到入口点DLLRegisterServer

请确保“Addition.dll”是有效的dll或OCX文件,然后重试 再次


有人能帮我找出问题所在吗?

要注册的每个DLL都必须具有DLLRegisterServer函数。只要运行regsvr32.dll\u NAME,就会调用此函数。它基本上修改了注册表,只是做了一些需要将这个dll安装到系统中的事情

从您的错误可以明显看出,模块“Addition.dll”没有此函数。 如果是自定义DLL,则添加此函数并再次运行


此功能主要用于COM(组件对象模型)组件在系统中注册自身。不用作COM服务器的DLL不需要此函数。

@ilansch是的,我已经编写了it@djtechie-该问题显然属于
堆栈溢出问题
我已标记该问题,以便版主迁移该问题。至于解决问题,如果您需要帮助,请在创建
Addition.dll
的文件中发布所有方法签名。如果您没有DLLRegisterServer函数,并且不知道为什么需要它,那么您可能不需要它,因此不应该注册它。