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/28/2007 3:38:16 AM
Posts: 1, Visits: 6
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 GodForum GodForum GodForum GodForum GodForum GodForum GodForum God

Group: Forum Members
Last Login: Today @ 11:19:17 AM
Posts: 1,795, Visits: 4,572
Well if your only posting spam charmeddvd123 don't bother. 

Please delete his topics.

Keith

http://www.martin2k.co.uk/forums/index.php?act=idx

I've been programming with VB for 14 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

PermissionsExpand / Collapse

All times are GMT -5:00, Time now is 6:55pm