COM Interop problem

  • Thread starter Thread starter Janaka
  • Start date Start date
J

Janaka

Hi I've got an assembly that i've registerd using regasm for COM interop.
This seems to work however the method I need to call keeps throwing a
"Invalid procedure call or argument" error. I've checked the arguments
which are : decimal, bool, bool

Could this be that the decimal isn't being recognised? In VBS it is being
called like
myObject.MyMethod(10.99, true, false)
 
Sorry I found the problem. I was overloading the method in C#. I made a
new method name to access the C# method from COM which worked
 
Back
Top