Click to See Complete Forum and Search --> : accessing managed DLL from ActiveX


alegiec
August 2nd, 2004, 10:07 AM
Hi,

I created ActiveX control using .NET. This control has to use a method from DLL written in managed C++. I can define reference to this DLL, can succesfully compile and link the whole project, but when I try to run the control using ActiveX control test container it cannot see type (class RemotingHren) defined in my DLL:

System.IO.FileNotFoundException

Additional information: File or assembly name RemotingHren, or one of its dependencies, was not found

Putting DLL into directory defined in $PATH does not help. It works only with
*a = Assembly::LoadFrom and a->GetType methods, but it is strange and my boss doesn't like it. Is it a way to do this normally ?