Hi there,
I'm trying to add a component to the selection of 3DCreate but run into a COM-Exception:
Getting the component and selection pointers is no problem :
vcCOM::IvcComponentPtr cmp = m_appPtr->findComponent("TestComponent");
vcCOM::IvcSelectionPtr sel = m_appPtr->getSelection(VC_SELECTION_COMPONENT);
but how should i use the sel->addItem( ) method which needs a IvcPropertyList ** as parameter ?
The following code querys successful the IvcPropertyList interface but the addItem call fails :
vcCOM::IvcPropertyList *pp = NULL;
HRESULT h = cmp->QueryInterface(__uuidof(vcCOM::IvcPropertyList), (void **)&pp);
sel->addItem(&pp);
So it would be great if you could provide a short example on how to do the selection correctly...
Thanks in advance,
Michael