Syntax of get_Item call in C++

Syntax of get_Item call in C++

oransen
Collaborator Collaborator
478 Views
2 Replies
Message 1 of 3

Syntax of get_Item call in C++

oransen
Collaborator
Collaborator

I've seen pPointer->get_Item used in many examples but the way of passing the first index argument changes. Some examples...

   get_Item(COleVariant(CGID)...

   get_Item(CComVariant(j),...

   get_Item(_variant_t(3L, VT_I4),...

In these three examples they all get cast to different types. Are they all equivalent when get_Item simply requires an index?

 

This may be more a COM than Inventor API question, but any help would be appreciated...

0 Likes
479 Views
2 Replies
Replies (2)
Message 2 of 3

adam.nagy
Autodesk Support
Autodesk Support

Hi,

 

Are you experiencing any issues with any of them?

If you are just simply wondering about the differences between them then yes, asking a COM programming forum might be a better option 🙂

Inventor API is just like any other COM API, inc. e.g. the Office product API's

 

Cheers,



Adam Nagy
Autodesk Platform Services
Message 3 of 3

oransen
Collaborator
Collaborator
No I was not experiencing problems, except my own slow learning speed! I'll try to get to grips with COM more...
0 Likes