Calling VB6 component that has ParamArray parameter

  • Thread starter Thread starter Bruno Miousse
  • Start date Start date
B

Bruno Miousse

I am trying to invoke a COM component (written in VB6) which accepts
parameter of ParamArray data type.

What would be the proper syntax in C# for passing ParamArray in VB6?

Thanks.
 
Bruno,

Generate an assembly from the COM component using the tlbimp tool and then
inspect the assembly using ildasm.

Does that help?

Regards,

Bart
 
Thanks,

The ParamArray parameter of my function is defined has followed when
inspecting with ildasm.

[in][out] object[]& marshal( safearray variant) rvArray

What should I do with this in my C# code to pass the correct parameter type
whitout changing anything to the vb component interface?
 
Back
Top