<?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[CWnd HWND Verständnisproblem (MFC)]]></title><description><![CDATA[<p>Moin,</p>
<p>ich hab mir diesen Code für meine MFC-Anwendung übernommen</p>
<pre><code class="language-cpp">HWND meinwindow=FindWindow(NULL,&quot;Downloader X&quot;); 
  GetWindowThreadProcessId(meinwindow,&amp;pid);
</code></pre>
<p>Ich erhalte diesen Fehler:</p>
<p>error C2440: 'Initialisierung': 'CWnd *' kann nicht in 'HWND' konvertiert werden.</p>
<p>Ändere ich das HWND auf CWnd* bleib ich bei GetWindowThreadProcessId hängen,<br />
weil dieses wieder HWND will ?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/78677/cwnd-hwnd-verständnisproblem-mfc</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Apr 2026 17:01:57 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/78677.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 04 Jul 2004 08:24:42 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CWnd HWND Verständnisproblem (MFC) on Sun, 04 Jul 2004 08:24:42 GMT]]></title><description><![CDATA[<p>Moin,</p>
<p>ich hab mir diesen Code für meine MFC-Anwendung übernommen</p>
<pre><code class="language-cpp">HWND meinwindow=FindWindow(NULL,&quot;Downloader X&quot;); 
  GetWindowThreadProcessId(meinwindow,&amp;pid);
</code></pre>
<p>Ich erhalte diesen Fehler:</p>
<p>error C2440: 'Initialisierung': 'CWnd *' kann nicht in 'HWND' konvertiert werden.</p>
<p>Ändere ich das HWND auf CWnd* bleib ich bei GetWindowThreadProcessId hängen,<br />
weil dieses wieder HWND will ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/552747</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/552747</guid><dc:creator><![CDATA[ModulWriter]]></dc:creator><pubDate>Sun, 04 Jul 2004 08:24:42 GMT</pubDate></item><item><title><![CDATA[Reply to CWnd HWND Verständnisproblem (MFC) on Sun, 04 Jul 2004 08:55:30 GMT]]></title><description><![CDATA[<p>mach<br />
::FindWindow, damit du die WINAPI und nicht die MFC-Funktion verwendest.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/552753</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/552753</guid><dc:creator><![CDATA[Surkevin]]></dc:creator><pubDate>Sun, 04 Jul 2004 08:55:30 GMT</pubDate></item><item><title><![CDATA[Reply to CWnd HWND Verständnisproblem (MFC) on Sun, 04 Jul 2004 19:31:32 GMT]]></title><description><![CDATA[<p>Oder übergib einfach das korrekte Handle auf deinen Dialog. Normalerweise this-&gt;GetSaveHwnd (Keine Ahnung, ob das das jetzt mit der Groß/Kleinschreibung hinhaut, aber os ungefähr).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/553185</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/553185</guid><dc:creator><![CDATA[mkcore]]></dc:creator><pubDate>Sun, 04 Jul 2004 19:31:32 GMT</pubDate></item></channel></rss>