PRB: MFC ActiveX Control Fails to Insert into PowerPoint 2000 (243240)
The information in this article applies to:
- Microsoft PowerPoint 2000
- The Microsoft Foundation Classes (MFC)
- Microsoft Visual C++, 32-bit Professional Edition 6.0
This article was previously published under Q243240 SYMPTOMS
When trying to insert an MFC ActiveX Control into Microsoft PowerPoint 2000 by selecting Object from the Insert menu, you get the following error message:
PowerPoint found an error that it cannot correct, you should save presentations, quit, and then restart PowerPoint.
CAUSE
MFC tries to QueryInterface() for IOleControlSite in its implementation of IOleObject::SetClientSite(). However, Microsoft PowerPoint does not expect this situation for OLE objects inserted through Insert|Object, and reports the error.
RESOLUTION
Change your implementation to avoid calling QueryInterface() for IOleControlSite until after IOleObject::SetClientSite() is called.
Modification Type: | Major | Last Reviewed: | 12/12/2003 |
---|
Keywords: | kbCtrlCreate kbprb KB243240 |
---|
|