"Error in loading dll" when Making ActiveX DLL



I'm working on a VB6 COM addin. After some modifications and a few
weeks time, I tried to remake the DLL using VS. This resulted in a
"Error in loading dll" dialog box.

I was doing this to package it into an msi using Visual Studio
Installer. I was still able to make the msi, even with the original dll
error. However, when I try to install I get the following:

Error 1904. Module C:\Program Files\xxx Plug-in\xxxPlugin.dll failed
to register.
HRESULT -2147467259. Contact your support personnel.

I am able to continue with the installation, and the plug-in works
correctly, but I need to get rid of this error. Trying to use RegSvr32
to manually register the dll results in:

DllRegisterServer in xxxPlug-in.dll failed.
Return code was :0x80004005

I've searched usenet and the web but can't seem to find anyone with
this exact problem, although there seem to be a lot of related issues.
What's going on? Any ideas? Any more information that I can provide?

Thanks.

--
matt

.



Relevant Pages

  • Building an C# web project using C++ DLLs: COM versionning issues.
    ... I tried to build an MSI for web C# project. ... However a 4th server did not detect this error condition, ... work perhaps using a wrong version of the DLL. ... installed in the GAC by an independent installer file. ...
    (microsoft.public.vsnet.general)
  • Re: MSI Installer now pops up when running VB app
    ... or OCX registration. ... when I start any of my VB apps Microsoft Installer (MSI) pops up ... that registered the offending DLL or OCX is not longer installed properly ...
    (microsoft.public.vb.controls)
  • Re: regsvr32 error code 0x80004002
    ... I also have seen this error when there is a missing dll that your dll depends on. ... this invocation of regsvr32 succeeds. ... On another PC which also has VS2005 SP1 installed, an installer which was created by a VS2005 SP1 setup project did indeed insist on installing an extra copy of the redistributables. ... Sorry Norman, the context that this was happening on your development machine was lost, so I had forgotten that VS was installed. ...
    (microsoft.public.vc.mfc)
  • RE: VS2005 setup project: execute tasks without installing files?
    ... Windows Installer SDK must be installed. ... Add it into Custom Action, in the Custom Action Editor, open its ... C++ custom action and we use it to get the dll path, ... Microsoft Online Community Support ...
    (microsoft.public.vsnet.setup)
  • Re: msvcp71.dll and Python 2.4 C++ extensions
    ... >> this dll somewhere in the Python directory. ... I'm creating the installer via the distutils by calling "setup.py ... directory where other C++ extension packages might also be able to use ...
    (comp.lang.python)

Loading