- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I get this impression that there is no shortcut method of drilling down through a COM object tree, am I correct? Do I have to first retrieve the object pointer for each sub-object then use that pointer to get the properties and methods of the sub-object?
e.g. in VB you'd do:
TopObject.Collection(1).SubObject.Name
in C++:
TopObject->Collection(1)->SubObject->Name
in FORTRAN must I do (pseudo-code):
pntrOne = TopObject (CreateCOMObjectBY...)
pntrTwo = TopObject_GetCollection (pntrOne)
pntrThree = Collection_GetSubObject(pntrTwo, 1)
name_var = SubObject_GetName(pntrThree, Name)
e.g. in VB you'd do:
TopObject.Collection(1).SubObject.Name
in C++:
TopObject->Collection(1)->SubObject->Name
in FORTRAN must I do (pseudo-code):
pntrOne = TopObject (CreateCOMObjectBY...)
pntrTwo = TopObject_GetCollection (pntrOne)
pntrThree = Collection_GetSubObject(pntrTwo, 1)
name_var = SubObject_GetName(pntrThree, Name)
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
> I get this impression that there is no shortcut method of drilling down through a COM object tree, am I correct?
Yes, Dan, you are correct.
Leo
Yes, Dan, you are correct.
Leo

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page