Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
If I loop over the component occurrences in an assembly, but some of these occurrences are missing and have been skipped by the user, what does...
CComPtr<ComponentOccurrence> pCompOcc;
hRes = pOccs->get_Item(lOccCount, &pCompOcc);
// pCompOcc appears to be unavailable, but hRes has returned OK
...give me? If I check pCompOcc == nullptr I get an exception. Is there some member of ComponentOccurrence which tells me it is skipped?
Solved! Go to Solution.