I have created a COM object using NetLink to interface with another program. It works well except when I try to use methods that take an array of Variant values as argument. The method definition in VB looks like this:
Public Function MyMethod( _
ByVal AttrIDs As Variant _
) As Variant
An example in VB of how to use this method is as follows.
How can I call this method in Mathematica? I tried it like this but get the following error.
"A .NET exception occurred: \
"System.Reflection.TargetInvocationException: Exception has been \
thrown by the target of an invocation. ---> \
CComBaseContainer::GetMultipleAttributes failed "