Creating instance of Com visible class in Net assembly

  • Thread starter Thread starter shn1983
  • Start date Start date
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.
 
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...
 
Back
Top