DOC: IControlContainer::GetControlParts Must Return the Private IUnknown of the Control (244032)



The information in this article applies to:

  • Microsoft Visual Basic for Applications (VBA) Software Development Kit (SDK) 5.0

This article was previously published under Q244032

SUMMARY

The documentation in the VBA 5.0 Host Integration Guide (page 100) indicates that the host's IControlContainer::GetControlParts implementation should return NULL for the private IUnknown interface of built-in controls.

This is incorrect.

Returning NULL for the private IUnknown interface of built-in controls causes VBA to crash. Always return the private IUnknown interface to avoid this problem.

MORE INFORMATION

Microsoft is aware of this problem, and has corrected the documentation in version 6.0 and higher of the VBA SDK.

Modification Type:MajorLast Reviewed:10/28/1999
Keywords:kbdocfix KB244032