How to create a sink interface in a MFC-based COM client (181845)
The information in this article applies to:
- The Microsoft Foundation Classes (MFC), when used with:
- Microsoft Visual C++, 32-bit Editions 2.0
- Microsoft Visual C++, 32-bit Editions 2.1
- Microsoft Visual C++, 32-bit Editions 2.2
- 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 Enterprise Edition 5.0
- Microsoft Visual C++, 32-bit Enterprise Edition 6.0
- Microsoft Visual C++, 32-bit Professional Edition 4.2
- Microsoft Visual C++, 32-bit Professional Edition 5.0
- Microsoft Visual C++, 32-bit Professional Edition 6.0
- Microsoft Visual C++, 32-bit Learning Edition 6.0
- Microsoft Visual C++ .NET (2002)
- Microsoft Visual C++ .NET (2003)
This article was previously published under Q181845 Note Microsoft Visual C++ .NET 2002 and Microsoft Visual C++ .NET 2003 support both the managed code model that is provided by the Microsoft .NET Framework and the unmanaged native Microsoft Windows code model. The information in this article applies only to unmanaged Visual C++ code. SUMMARY Microsoft Foundation Classes (MFC) has wizard support to
add sink interfaces for ActiveX controls. However, this support does not extend
to other COM servers. This article describes how to add a sink interface in an
MFC client for source interfaces described by COM servers. Please note that
this article applies to source interfaces, which are dispinterfaces, or dual
interfaces with events being called through IDispatch::Invoke(). REFERENCES The sink component of the Connpts.exe sample illustrates
implementation of the sink interface.
For more information, click the following article number to view the article in the Microsoft Knowledge Base:
152087
Connpts.exe sample demonstrates how to implement connection points and connection point sinks in Visual C++
Modification Type: | Major | Last Reviewed: | 10/21/2005 |
---|
Keywords: | kbhowto KB181845 kbAudDeveloper |
---|
|