X
Xavier MT
Hi, I have a small problem I solve easily in VB.NET but now I need to
implement it in C#. The problem is:
I have a COM component written in C++ and the methods are like this:
STDMETHOD(get_OpeningBalance)(double *pVal);
In VB.NET I do the following:
MyLoanCalculator = CreateObject("LoanLib.Loan.1")
And then I use MyLoanCalculator normally and since VB allows latebinding I
can access all methods and properties easily. However when I use C# I use
Activator.CreateInstance but then I haven't been able to invoke properties
or methods that receive parameters by reference.
An important detail is that the COM library needs to be registered as a
server application in COM+.
Any ideas?
implement it in C#. The problem is:
I have a COM component written in C++ and the methods are like this:
STDMETHOD(get_OpeningBalance)(double *pVal);
In VB.NET I do the following:
MyLoanCalculator = CreateObject("LoanLib.Loan.1")
And then I use MyLoanCalculator normally and since VB allows latebinding I
can access all methods and properties easily. However when I use C# I use
Activator.CreateInstance but then I haven't been able to invoke properties
or methods that receive parameters by reference.
An important detail is that the COM library needs to be registered as a
server application in COM+.
Any ideas?