<?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[GetConsoleWindow - undeclared identifier]]></title><description><![CDATA[<pre><code class="language-cpp">#define _WIN32_WINNT 0x0500 
#include &lt;windows.h&gt;
#include &lt;wincon.h&gt;

HWND console=GetConsoleWindow();
</code></pre>
<blockquote>
<p>error C2065: 'GetConsoleWindow' : undeclared identifier<br />
error C2440: 'initializing' : cannot convert from 'int' to 'struct HWND__ *'<br />
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/topic/111766/getconsolewindow-undeclared-identifier</link><generator>RSS for Node</generator><lastBuildDate>Wed, 01 Jul 2026 04:35:03 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/111766.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 04 Jun 2005 20:53:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to GetConsoleWindow - undeclared identifier on Sat, 04 Jun 2005 20:53:01 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">#define _WIN32_WINNT 0x0500 
#include &lt;windows.h&gt;
#include &lt;wincon.h&gt;

HWND console=GetConsoleWindow();
</code></pre>
<blockquote>
<p>error C2065: 'GetConsoleWindow' : undeclared identifier<br />
error C2440: 'initializing' : cannot convert from 'int' to 'struct HWND__ *'<br />
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/802415</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/802415</guid><dc:creator><![CDATA[hmmmmmMm]]></dc:creator><pubDate>Sat, 04 Jun 2005 20:53:01 GMT</pubDate></item><item><title><![CDATA[Reply to GetConsoleWindow - undeclared identifier on Sat, 04 Jun 2005 21:18:09 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>schau dir mal den passenden Eintrag in der MSDN an: <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/getconsolewindow.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/getconsolewindow.asp</a></p>
<p>Da steht unter Remarks:</p>
<blockquote>
<p>Remarks<br />
To compile an application that uses this function, define _WIN32_WINNT as 0x0500 or later. For more information, see Using the Windows Headers.</p>
</blockquote>
<p>MfG</p>
<p>Anakin</p>
]]></description><link>https://www.c-plusplus.net/forum/post/802425</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/802425</guid><dc:creator><![CDATA[Anakin Skywalker]]></dc:creator><pubDate>Sat, 04 Jun 2005 21:18:09 GMT</pubDate></item><item><title><![CDATA[Reply to GetConsoleWindow - undeclared identifier on Sat, 04 Jun 2005 21:58:53 GMT]]></title><description><![CDATA[<p>Was willst du mir jetzt damit sagen?<br />
- steht bereits schon oben im Code.</p>
<p>Ich lade momentan ein anderes SDK herunter, vielleicht hilft das.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/802451</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/802451</guid><dc:creator><![CDATA[hmmmmMm]]></dc:creator><pubDate>Sat, 04 Jun 2005 21:58:53 GMT</pubDate></item><item><title><![CDATA[Reply to GetConsoleWindow - undeclared identifier on Sat, 04 Jun 2005 22:22:23 GMT]]></title><description><![CDATA[<p>Scheint als fehle dir das neueste Platform-SDK, jop.</p>
<p>MfG SideWinder</p>
]]></description><link>https://www.c-plusplus.net/forum/post/802459</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/802459</guid><dc:creator><![CDATA[SideWinder]]></dc:creator><pubDate>Sat, 04 Jun 2005 22:22:23 GMT</pubDate></item><item><title><![CDATA[Reply to GetConsoleWindow - undeclared identifier on Sun, 05 Jun 2005 01:36:28 GMT]]></title><description><![CDATA[<p>Der Fehler ist immer noch da....vielleicht gibtz die Funktion nicht mehr?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/802485</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/802485</guid><dc:creator><![CDATA[hhmmmmMmm]]></dc:creator><pubDate>Sun, 05 Jun 2005 01:36:28 GMT</pubDate></item><item><title><![CDATA[Reply to GetConsoleWindow - undeclared identifier on Sun, 05 Jun 2005 04:40:38 GMT]]></title><description><![CDATA[<p>Hast du die neuen Verzeichnisse für die Include und Libs auch in der Liste ganz oben stehen (bei VC++: Extras &gt; Optionen &gt; Verzeichnisse)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/802493</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/802493</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Sun, 05 Jun 2005 04:40:38 GMT</pubDate></item><item><title><![CDATA[Reply to GetConsoleWindow - undeclared identifier on Sun, 05 Jun 2005 09:28:59 GMT]]></title><description><![CDATA[<p>hhmmmmMmm schrieb:</p>
<blockquote>
<p>Der Fehler ist immer noch da....vielleicht gibtz die Funktion nicht mehr?</p>
</blockquote>
<p>Bei mir funktionierts, daran kann es also nicht liegen...</p>
<p>MfG SideWinder</p>
]]></description><link>https://www.c-plusplus.net/forum/post/802557</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/802557</guid><dc:creator><![CDATA[SideWinder]]></dc:creator><pubDate>Sun, 05 Jun 2005 09:28:59 GMT</pubDate></item></channel></rss>