C# and VB COM object

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.
 
W

Willy Denoyette [MVP]

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

Willy.
 

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