Visual Basic Code , VB.NET Code, VB Code
  Home   :  Code   :  Forums   :  Submit   :  Mailing List   :  About   :  Contact
A1VBCode Forums
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      

Home » Classic Visual Basic (VB 6 or earlier) » COM/ActiveX » Variant Arrays


Variant ArraysExpand / Collapse
Author
Message
Posted 8/25/2007 7:49:16 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 8/27/2011 5:57:16 AM
Posts: 2, Visits: 7
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.....

Post #22822
Posted 7/7/2009 7:13:47 AM


Forum God

Forum God

Group: Moderators
Last Login: 2 days ago @ 6:29:46 PM
Posts: 1,889, Visits: 5,254
Well if your only posting spam charmeddvd123 don't bother. 

Please delete his topics.

Keith

I've been programming with VB for 15 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.
Post #27892
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 1 (1 guest, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Admin, Mod, Mark, Keithuk

PermissionsExpand / Collapse

All times are GMT -5:00, Time now is 2:56am