Creating instance of Com visible class in Net assembly

S

shn1983

Suppose I have two Net assemblies A and B.

A contains declaration of COM visible interface "IFun"

B refernces A, and "Fun" which is com visible class in B implemets interface
"IFun" which is in A

Now how can I create an instance of class "Fun" in assembly A.


Please Help.
 
G

Guest

Add a reference to B in A and then:

B.Fun bfun = new B.Fun();

You stated they are both .net assemblies, so there is nothing special about
the setup...
 

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