<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Interface implementieren - CCmdTarget]]></title><description><![CDATA[<p>Hallo Leute,</p>
<p>ich habe eine Klasse von CCmdTarget abgeleitet.</p>
<p>Diese soll ein paar Interfaces implementieren.</p>
<p>Ich benutze die in der MFC beschriebene Methode über<br />
BEGIN_INTERFACE_PART<br />
END_INTERFACE_PART</p>
<p>Ich habe eine Handvoll Interfaces zu implemetieren welche alle von IDispatch abgeleitet sind.</p>
<p>Dumm ist nur dass ich auch immer die standard IDispatch Funktionen implemetieren muss.</p>
<p>Kann mir vielleicht einer sagen wie das in der MFC anders geht.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/149503/interface-implementieren-ccmdtarget</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Jul 2026 05:00:33 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/149503.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 06 Jun 2006 15:41:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Interface implementieren - CCmdTarget on Tue, 06 Jun 2006 15:41:40 GMT]]></title><description><![CDATA[<p>Hallo Leute,</p>
<p>ich habe eine Klasse von CCmdTarget abgeleitet.</p>
<p>Diese soll ein paar Interfaces implementieren.</p>
<p>Ich benutze die in der MFC beschriebene Methode über<br />
BEGIN_INTERFACE_PART<br />
END_INTERFACE_PART</p>
<p>Ich habe eine Handvoll Interfaces zu implemetieren welche alle von IDispatch abgeleitet sind.</p>
<p>Dumm ist nur dass ich auch immer die standard IDispatch Funktionen implemetieren muss.</p>
<p>Kann mir vielleicht einer sagen wie das in der MFC anders geht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1072622</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1072622</guid><dc:creator><![CDATA[souso20]]></dc:creator><pubDate>Tue, 06 Jun 2006 15:41:40 GMT</pubDate></item><item><title><![CDATA[Reply to Interface implementieren - CCmdTarget on Sun, 11 Jun 2006 12:41:22 GMT]]></title><description><![CDATA[<p><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcmfc98/html/_mfcnotes_tn038.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcmfc98/html/_mfcnotes_tn038.asp</a><br />
To implement a class using MFC's interface maps follow these steps:</p>
<blockquote>
<p>1. Derive a class either directly or indirectly from CCmdTarget.<br />
2. Use the DECLARE_INTERFACE_MAP function in the derived class definition.<br />
3. For each interface you wish to support, use the BEGIN_INTERFACE_PART and END_INTERFACE_PART macros in the class definition.<br />
4. In the implementation file, use the BEGIN_INTERFACE_MAP and END_INTERFACE_MAP macros to define the class's interface map.<br />
5. For each IID supported, use the INTERFACE_PART macro between the BEGIN_INTERFACE_MAP and END_INTERFACE_MAP macros to map that IID to a specific &quot;part&quot; of your class.<br />
6. Implement each of the nested classes that represent the interfaces you support.<br />
7. Use the METHOD_PROLOGUE macro to access the parent, CCmdTarget-derived object.<br />
8. AddRef, Release, and QueryInterface can delegate to the CCmdTarget implementation of these functions (ExternalAddRef, ExternalRelease, and ExternalQueryInterface).</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/1075586</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1075586</guid><dc:creator><![CDATA[Erhard Henkes]]></dc:creator><pubDate>Sun, 11 Jun 2006 12:41:22 GMT</pubDate></item></channel></rss>