I have done this. As long as the interop dll doesn't refer to other dlls
this works.
But , i think, as soon as this interop dll references other dotnet dlls, the
clr tries to locate these referenced dlls in the app domein, and not on the
location of the interop dll.
I don't want to use the GAC. This will trigger a cascade of referenced dlls
to register in the GAC.
Perry
Perry,
>But , i think, as soon as this interop dll references other dotnet dlls, the
>clr tries to locate these referenced dlls in the app domein, and not on the
>location of the interop dll.
Right. To solve that you could make the VB app a runtime host that
explicitly sets the appbase directory to DotNetProg. Or you make your
interop library handle the AppDomain.AssemblyResolve event and
explicitly load assemblies from that directory.
Mattias

Signature
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Perry van Kuppeveld - 29 Dec 2004 13:40 GMT
Setting the appbase sounds ok, but how do i do this.........
Perry van Kuppeveld - 29 Dec 2004 15:49 GMT
Handeling the AssemblyResolve event looks like an option.
The only question is: How / where do i subscribe on this event as there's no
Dll entry point.
Do you have a sample or link on this?
Thanks,
Perry
> Perry,
>
[quoted text clipped - 10 lines]
>
> Mattias
Mattias Sj?gren - 05 Jan 2005 22:03 GMT
>Handeling the AssemblyResolve event looks like an option.
>The only question is: How / where do i subscribe on this event as there's no
>Dll entry point.
>
>Do you have a sample or link on this?
I don't know what would work in your application, perhaps you could
set it up in a static constructor.
No sample, sorry.
Mattias

Signature
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.