Error in registering DLL

2019-05-19 01:22发布

I'm trying to register DLL with command regsvr32 dll_name.dll but I'm getting below error

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

Can anyone help me to figure out what is the problem?

1条回答
女痞
2楼-- · 2019-05-19 01:38

Every DLL you want to register must have the function DLLRegisterServer. This function is invoked whenever you run regsvr32.dll DLL_NAME. It modifies basically registry and just do things that need to install this dll into system.

From your error it is obvious that module "Addition.dll" doesn't have this function. If it is custome made DLL , than add this function and run it again.

This Function is mainly used by COM (Component object model) components to register itself in system. DLL that will not used as COM server need not to have this function.

查看更多
登录 后发表回答