User (Legacy) Posted June 2, 2000 Report Share Posted June 2, 2000 I can't get the GetExtension function to work. Can you tell me what I am doing wrong? Sample code: (Using VC++, DLL, Latest service pack) // Add the annotation extension IAnnListPtr pAnnList; pAnnList.CreateInstance(__uuidof(AnnotationX)); pChart->AddExtension((IUnknown*)pAnnList); // Now try getting it back. LPUNKNOWN pList; HRESULT HR = pChart->raw_GetExtension("AnnotateX.AnnList", &pList); HR now contains CO_E_CLASSSTRING ("Invalid class string.") I tried "AnnotationX.AnnList" as well, since I saw the other post in this newgroup, but I get the same HRESULT. What string should I be using? Andrew Pane --------------------------------------- Merak Projects Ltd. A Division of Schlumberger GeoQuest --------------------------------------- Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.