Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
If I put an iPart inside an assembly programatically (using Add to the occurences list) I get given a pointer to the part which I've just added.
I can see if this is an iPart by using these properties: IsIPartFactory and IsIPartMember, like this:
if (pPartCompDef->IsiPartFactory == VARIANT_TRUE) { TRACE (L"InsertIpartInAssembly, %s is not ipart factory.",csIPartFullName); return (E_FAIL) ; } if (pPartCompDef->IsiPartMember == VARIANT_TRUE) { TRACE ("This is an iPart member") ; } else { TRACE ("This NOT an iPart member") ; }
It seems that an "inserted" part says it is an IPartFactory as well as an IPartMember. In the case that both IsIPartFactory and IsIPartMember return VARIANT_TRUE does that mean the object is in truth only an IPartMember?
Aplogies, my question is as clear as mud...!
Solved! Go to Solution.