<?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-Anwendung schließen]]></title><description><![CDATA[<p>Hallo!</p>
<p>Ich möchte eine MFC-Anwendung von einer beliebigen Stelle im Programm aus schließen.<br />
Wie geht das?</p>
<p>Mit besten Grüßen, Lothar.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/79930/mfc-anwendung-schließen</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Apr 2026 08:05:59 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/79930.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 15 Jul 2004 15:04:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to MFC-Anwendung schließen on Thu, 15 Jul 2004 15:04:38 GMT]]></title><description><![CDATA[<p>Hallo!</p>
<p>Ich möchte eine MFC-Anwendung von einer beliebigen Stelle im Programm aus schließen.<br />
Wie geht das?</p>
<p>Mit besten Grüßen, Lothar.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/561493</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/561493</guid><dc:creator><![CDATA[Sowada]]></dc:creator><pubDate>Thu, 15 Jul 2004 15:04:38 GMT</pubDate></item><item><title><![CDATA[Reply to MFC-Anwendung schließen on Thu, 15 Jul 2004 15:17:36 GMT]]></title><description><![CDATA[<pre><code>AfxGetMainWnd()-&gt;PostMessage(WM_CLOSE);
</code></pre>
<p>Gruß<br />
:: NoName ::</p>
]]></description><link>https://www.c-plusplus.net/forum/post/561504</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/561504</guid><dc:creator><![CDATA[__NoName__]]></dc:creator><pubDate>Thu, 15 Jul 2004 15:17:36 GMT</pubDate></item><item><title><![CDATA[Reply to MFC-Anwendung schließen on Fri, 16 Jul 2004 07:22:09 GMT]]></title><description><![CDATA[<p>Hallo NoName!<br />
Danke, im Normalfall klappt es.<br />
Allerdings muss man warten bis sich das Hauptfenster geöffnet hat.</p>
<p>In meinen Fall nutzt dies allerdings auch nichts, da die Anwendung als<br />
COM-Objekt läuft und von einer anderen Anwendung aus aufgerufen wird.<br />
Hier muss diese übergeordnete Anwendung eine Message erhalten, damit es<br />
das COM-Objekt schließt.</p>
<p>Beste Grüßen, Lothar.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/561863</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/561863</guid><dc:creator><![CDATA[Sowada]]></dc:creator><pubDate>Fri, 16 Jul 2004 07:22:09 GMT</pubDate></item><item><title><![CDATA[Reply to MFC-Anwendung schließen on Fri, 16 Jul 2004 09:02:24 GMT]]></title><description><![CDATA[<pre><code>...-&gt;SendMessage(WM_CLOSE);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/561941</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/561941</guid><dc:creator><![CDATA[a]]></dc:creator><pubDate>Fri, 16 Jul 2004 09:02:24 GMT</pubDate></item><item><title><![CDATA[Reply to MFC-Anwendung schließen on Fri, 16 Jul 2004 13:44:17 GMT]]></title><description><![CDATA[<p>Also, wenn ich das richtig verstanden habe hast du eine MFC Anwendung und ein COM-Objekt. Und du möchtest mit Hilfe der MFC Anwendung das COM-Objekt schließen. Hmm, ich bin mir nicht sicher, da ich mich nicht mit COM auskenne, aber könnte man nicht FindWindow verwenden und dann eine WM_CLOSE Nachricht an das COM-Objekt schicken <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
<p>Gruß<br />
:: NoName ::</p>
]]></description><link>https://www.c-plusplus.net/forum/post/562194</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/562194</guid><dc:creator><![CDATA[__NoName__]]></dc:creator><pubDate>Fri, 16 Jul 2004 13:44:17 GMT</pubDate></item><item><title><![CDATA[Reply to MFC-Anwendung schließen on Tue, 20 Jul 2004 10:22:47 GMT]]></title><description><![CDATA[<p>Hallo a!<br />
Ob SendMessage oder PostMessage macht in dem vorliegenden Fall keinen Unterschied. Im Unterschied zu SendMesage wartet das Programm nach Absenden der Message nicht auf deren Abarbeitung.</p>
<p>Gruß, L.</p>
<p>Hallo NoName!<br />
Deine Idee klingt gut.<br />
Ich benutze jedoch ein COM-Objekt, welches mir eine Methode zur Verfügung stellt, mit der ich das aufrufende Programm darum bitten kann, das COM-Objekt zu schließen.</p>
<p>Gruß, L.</p>
<p>...und Danke Euch beiden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/564313</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/564313</guid><dc:creator><![CDATA[Sowada]]></dc:creator><pubDate>Tue, 20 Jul 2004 10:22:47 GMT</pubDate></item></channel></rss>