A1VBCode Forums

Variant Arrays


http://a1vbcode.com/vbforums/Topic22822.aspx

By davrook - 8/25/2007

I have a COM object that i wrote a few years ago in delphi which requires a variant array to be passed in and a variant array to receive the results.

VB.net now does not support the type Variant, for which i have tried to declare an array of type object, but the COM object rejects this saying Exception Details: System.Runtime.InteropServices.COMException: Variant is not an array

Is there anyway round this using vb.net or c#.net?  as i dont want to have to re-write the com server as it is highly complicated.

Many thanks in advance.....

By Keithuk - 7/7/2009

Well if your only posting spam charmeddvd123 don't bother. 

Please delete his topics. Wink