C# and VB COM object

  • Thread starter Thread starter Bob
  • Start date Start date
B

Bob

I have a VB COM object with a method as follows:

Public Function GetTotalAmount(strUniqueIdentifier As Variant) As Variant

This method works fine in classic ASP. But in C#, when I call this method,
it complains because the parameter is a Variant. How do I get around this
problem without re-compiling the VB COM object?

Thank you.
 
Complains like what?
Remember Variants are marshaled as Objects.
Mind to share some code, and/or the error message.

Willy.
 
Back
Top