Trying to register a dll but getting error DllRegisterServer entry point was not found

感情迁移 提交于 2019-12-07 17:02:25

问题


I have a .net assembly dll which i am trying to register using regsvr32, but get the following error:

"dll loaded but DllRegisterServer entry point was not found "

getting this error while registering the other dlls also.


回答1:


There is a Microsoft KB article on regsvr32 that you should read. A DLL must be a COM library for it to be registered. This exposes the entry function (DllRegisterServer) noted in the error message. This might not be there is the DLL is not designed to be registered, or is "corrupt" in some way. You can find out if a function is exported using DLL Export Viewer.

It would be great if you could provide information on whether you have the source code for the DLLs and why you need to register them. If you have a plain Win32 DLL you can access functions by loading it with LoadLibrary from native code. You need to use P/Invoke from .NET code.



来源:https://stackoverflow.com/questions/11327215/trying-to-register-a-dll-but-getting-error-dllregisterserver-entry-point-was-not

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!