By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,671 Members | 1,387 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,671 IT Pros & Developers. It's quick & easy.


P: n/a
Im using a dll made in VB 6.0
this dll exposes a weird collection, from a program in VB 6.0 it was
accessed this way:

result = instance_dll.collection(1).property1
result = instance_dll.collection(1).property2

now within c# im accessing it this way:

//take the collection
VBA.Collection collection = (VBA.Collection) instance_dll.collection;
//trash is the only way i found to access the damn collection
object int_temp = 1;

object myObject = (object) coleccion.Item(ref int_temp);

Now i have the first part but... how can i access the other properties?
when i see this object in the watch it appears as system.__comobject

thanks in advance!
Nov 15 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.