
Signature
Phil Wilson [MVP Windows Installer]
----
> It's impossible to know the right answer with knowing something about how
> X.DLL links to Y.DLL. Is it a static link or an explicit LoadLibrary?
It is a static link.
>When
> you say "quite strange current path it uses" in your first post, does "it"
> mean that X.DLL is using a strange current path?
It means that regcap uses the different current paths, but not the path
to X.DLL. I spied this using the code inside the X.DLL. Also I checked
that X.DLL is loaded from its own folder where the Y.DLL is.
> It seems to me that Y.DLL needs to be in the PATH of the current executable,
> which is why it works in the regcap.exe folder.
>AFAIK this is a bit strange
> because COM DLLs by default look for their dependencies in their same folder
> (it would be a nightmare to expect client programs to know and install the
> dependencies of all their COM servers in the same folder as their
> executable).
I suppose that regcap uses something like LoadLibrary with the full path
to X.DLL, but I don't know what is going on then.
> > > This is nothing to do with VS.NET and everything to do with the way COM
> > > registration works. All these tools calls DllRegisterServer in the DLL
[quoted text clipped - 20 lines]
> >
> > Aleksey.