Re: regsvr32



LoadLibrary can fail if the DLL is not in the specified path, or if the
specified path is incorrect. LoadLibrary can also fail if one of the
dependencies of the DLL that you are trying to load is not met; in other
words, if a dependent DLL is not present or is not in the specified path.

1.) If the dll has dependencies or is dependent on others, then it's
important to replace with the same version.
2.) If the dll exports the DLLRegisterServer, DllUnregisterServer functions
then it's best to unregister

regsvr32.exe /u "PathToDLL"
then after replacement
regsvr32.exe "PathToDLL"

INFO: How Regsvr32.exe Registers and Unregisters COM DLLs
http://support.microsoft.com/default.aspx?kbid=207132

Explanation of Regsvr32 Usage and Error Messages
http://support.microsoft.com/default.aspx?kbid=249873

You can run depends.exe against the DLL to check dependencies

You'll find depends.exe within
http://www.dependencywalker.com/

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

"Andre" wrote:
| On a newly setup Windows 2003 box, I'm trying to register a dll using
| regsvr32.dll. I've used this dll for years -
| http://www.sevillaonline.com/ActiveX/vb5/RC2Lib.htm - and have
successfully
| registered it on other Win2003 boxes. This time I'm getting the following
| error:
| LoadLibrary("rc2.dll") failed - The specified module could not be found
|
| I've looked at several articles in the kb, but I don't find anything that
is
| helping. Can anyone give me any insight as to why this might not be
| working?
|
| Thanks, Andre
|
|


.



Relevant Pages

  • Re: Cant register DLL
    ... LoadLibrary can fail if the DLL is not in the specified path, ... If the dll has dependencies or is dependent on others, ...
    (microsoft.public.win2000.registry)
  • Re: Errors in registering a .dll to windows 2k3
    ... LoadLibrary can fail if the DLL is not in the specified path, ... If the dll has dependencies or is dependent on others, ...
    (microsoft.public.windows.file_system)
  • Re: Regsvr32 failure
    ... LoadLibrary can fail if the DLL is not in the specified path, ... If the dll has dependencies or is dependent on others, ... How Regsvr32.exe Registers and Unregisters COM DLLs ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: Cant Register OCX
    ... LoadLibrary can fail if the DLL is not in the specified path, ... If the dll has dependencies or is dependent on others, ...
    (microsoft.public.access.modulesdaovba)
  • Re: cannot register msxml3.dll, strange problem
    ... LoadLibrary can fail if the DLL is not in the specified path, ... If the dll has dependencies or is dependent on others, ...
    (microsoft.public.win2000.general)

Loading