HOWTO: How To Assign the ActiveX Control LPDispatch Property in VB 4 (153881)
The information in this article applies to:
- The Microsoft Foundation Classes (MFC), when used with:
- Microsoft Visual C++, 32-bit Editions 4.0
- Microsoft Visual C++, 32-bit Editions 4.1
- Microsoft Visual C++, 32-bit Enterprise Edition 4.2
- Microsoft Visual C++, 32-bit Professional Edition 4.2
This article was previously published under Q153881 SUMMARY
It is often useful for one ActiveX (OLE) Control to hold an LPDispatch
pointer to another control on the same Visual Basic form. The first control
can use this pointer to call methods and/or access properties on the second
control using OLE Automation. This article demonstrates how to create a
property of type LPDispatch on an MFC ActiveX Control, and how to properly
set this property to another control's IDispatch pointer in Visual Basic.
NOTE: Although this article discusses properties of type LPDispatch, this
information also applies to properties of type LPUnknown.
REFERENCES
For more information, please see the following article in the Microsoft
Knowledge Base:
141414 How to Enumerate OLE and VB Controls from an OLE Control Visual C++ Books Online, Programming with MFC Encyclopedia.
Modification Type: | Major | Last Reviewed: | 12/10/2003 |
---|
Keywords: | kbCtrl kbhowto KB153881 |
---|
|