<?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[MFC Application mit ATL]]></title><description><![CDATA[<p>Hallo an euch alle,<br />
bin gerade dabei mit einer MFC .exe eine COM ATL einzubinden. Leider gibt die EXE eine .odl vor. Musste von Hand die idl einfügen, den Header fügt ATL jetzt schon ein, aber ich hab noch Probleme meine Objekte dahinter anzumelden. Weiß jemand was dazu?</p>
<p>Gruß<br />
Rinle612</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/180935/mfc-application-mit-atl</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Apr 2026 04:34:40 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/180935.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 08 May 2007 12:03:14 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to MFC Application mit ATL on Tue, 08 May 2007 12:03:14 GMT]]></title><description><![CDATA[<p>Hallo an euch alle,<br />
bin gerade dabei mit einer MFC .exe eine COM ATL einzubinden. Leider gibt die EXE eine .odl vor. Musste von Hand die idl einfügen, den Header fügt ATL jetzt schon ein, aber ich hab noch Probleme meine Objekte dahinter anzumelden. Weiß jemand was dazu?</p>
<p>Gruß<br />
Rinle612</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1280839</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1280839</guid><dc:creator><![CDATA[Rinle612]]></dc:creator><pubDate>Tue, 08 May 2007 12:03:14 GMT</pubDate></item><item><title><![CDATA[Reply to MFC Application mit ATL on Tue, 08 May 2007 21:51:16 GMT]]></title><description><![CDATA[<p>Rinle612 schrieb:</p>
<blockquote>
<p>eine COM ATL</p>
</blockquote>
<p>Was ist das?</p>
<pre><code class="language-cpp">// einige defines vorab; 
// am besten aus einer ATL/COM EXE kopieren
#define _ATL_FREE_THREADED // z.B.
#include &lt;atlbase.h&gt;
#import &quot;my.dll&quot;

void wo_auch_immer() {
    // oder einfach
    // ::Coinitialize(NULL);
    if(::CoinitializeEx(NULL,COINIT_MULTITHREADED)){
       try {
           MYTYPELib::IMyInterfacePtr p(&quot;MyAppId.MyClassId&quot;);    
           p-&gt;MyMethod();
       } catch (_com_error&amp; e) {
         // Error Handling
       }
       ::CoUninitialize();
    } else {
         // Error Handling
    } 
}
</code></pre>
<p>Grüsse</p>
<p>*this</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1281245</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1281245</guid><dc:creator><![CDATA[Gast++]]></dc:creator><pubDate>Tue, 08 May 2007 21:51:16 GMT</pubDate></item></channel></rss>