Pramod Gupta

Pramod Gupta

  • NA
  • 234
  • 51.1k

com+

Mar 1 2016 4:46 AM

I have register com+ compenent in component service.

 

I want to call this from c#.
 
please help.
 
 
coding of com+ dll
 

Namespace Class1

<Transaction(TransactionOption.Required), ComVisible(True)>

Public Class Class1

Inherits ServicedComponent

Public Sub New()

MyBase.New()

Console.WriteLine("Test() Constructor")

End Sub

<AutoComplete>

Public Function Subtraction(ByVal a, ByVal b) As Integer

a = 0

b = 0

Dim c As Integer

c = 0

c = a - b

Return c

End Function

End Class

End Namespace

 

Answers (1)