COM dlls using without registering

V

Vikas

Hello,
I am trying to use a COM dll inside my C# application. But my production
environment would not allow be register the COM dll.

Are there any other options by which I can use a method inside this COM
dll without actually registering it using regsvr32?

The consumer of the application is a C# .aspx page.

Thanks,
Vikas
 
M

Mattias Sjögren

T

Tony Jinks

In principle I think you could do it using PInvoke to load the Dll, find the
CoGetClassObject entry point, call that to get an interface pointer, etc,
etc, (i.e. all the stuff that COM does for you if the Dll is registered).
This would probably be much easier with a C++ wrapper containing a mixture
of managed and unmanaged code, though.

Tony Jinks
(e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top