<?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[BDS 2006 kennt GetModuleHandleEx nicht ???]]></title><description><![CDATA[<p>Hallo !</p>
<p>Bin am verzweifeln, da ich den Grund nicht finde, warum die Funktion GetModuleHandleEx() in meinem Programm unbekannt ist.</p>
<p>Habe, anweisungsgemäß</p>
<pre><code>#include &lt;windows.h&gt;
#include &lt;winbase.h&gt;
</code></pre>
<p>eingebunden und rufe sie mit</p>
<pre><code>HMODULE hDLL = NULL;
	GetModuleHandleEx(0, &quot;DLL_TestProjekt.dll&quot;, &amp;hDLL);
</code></pre>
<p>auf. Ich erhalte aber nur Fehlermeldungen. Laut Hilfe ist sie unter WXP verfügbar.<br />
Wo liegt das Problem ?</p>
<p>Danke.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/196554/bds-2006-kennt-getmodulehandleex-nicht</link><generator>RSS for Node</generator><lastBuildDate>Tue, 18 Aug 2026 14:04:21 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/196554.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 31 Oct 2007 09:30:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to BDS 2006 kennt GetModuleHandleEx nicht ??? on Wed, 31 Oct 2007 09:30:09 GMT]]></title><description><![CDATA[<p>Hallo !</p>
<p>Bin am verzweifeln, da ich den Grund nicht finde, warum die Funktion GetModuleHandleEx() in meinem Programm unbekannt ist.</p>
<p>Habe, anweisungsgemäß</p>
<pre><code>#include &lt;windows.h&gt;
#include &lt;winbase.h&gt;
</code></pre>
<p>eingebunden und rufe sie mit</p>
<pre><code>HMODULE hDLL = NULL;
	GetModuleHandleEx(0, &quot;DLL_TestProjekt.dll&quot;, &amp;hDLL);
</code></pre>
<p>auf. Ich erhalte aber nur Fehlermeldungen. Laut Hilfe ist sie unter WXP verfügbar.<br />
Wo liegt das Problem ?</p>
<p>Danke.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1395039</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1395039</guid><dc:creator><![CDATA[MyOwnShadow]]></dc:creator><pubDate>Wed, 31 Oct 2007 09:30:09 GMT</pubDate></item><item><title><![CDATA[Reply to BDS 2006 kennt GetModuleHandleEx nicht ??? on Wed, 31 Oct 2007 10:05:04 GMT]]></title><description><![CDATA[<p>MyOwnShadow schrieb:</p>
<blockquote>
<p>Ich erhalte aber nur Fehlermeldungen.</p>
</blockquote>
<p>Welche genau?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1395066</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1395066</guid><dc:creator><![CDATA[Jansen]]></dc:creator><pubDate>Wed, 31 Oct 2007 10:05:04 GMT</pubDate></item><item><title><![CDATA[Reply to BDS 2006 kennt GetModuleHandleEx nicht ??? on Wed, 31 Oct 2007 10:23:06 GMT]]></title><description><![CDATA[<p>Einfach:<br />
E2268: Aufruf einer undefinierten Funktion 'GetModuleHandleEx'</p>
<p>GetModuleHandle kennt er, aber nicht GetModuleHandleEx ...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1395079</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1395079</guid><dc:creator><![CDATA[MyOwnShadow]]></dc:creator><pubDate>Wed, 31 Oct 2007 10:23:06 GMT</pubDate></item><item><title><![CDATA[Reply to BDS 2006 kennt GetModuleHandleEx nicht ??? on Wed, 31 Oct 2007 10:50:06 GMT]]></title><description><![CDATA[<p>Schau mal in der winbase.h nach, ob diese Funktion dort deklariert ist und ob evtl. erst bestimmte defines gesetzt sein müssen.</p>
<p>Hier ein Auszug aus der MSDN:</p>
<blockquote>
<p>To compile an application that uses this function, define _WIN32_WINNT as 0x0501 or later.</p>
</blockquote>
<p>P.S:</p>
<blockquote>
<p>Client: Requires Windows Vista or Windows XP.</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/1395107</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1395107</guid><dc:creator><![CDATA[Th]]></dc:creator><pubDate>Wed, 31 Oct 2007 10:50:06 GMT</pubDate></item><item><title><![CDATA[Reply to BDS 2006 kennt GetModuleHandleEx nicht ??? on Wed, 31 Oct 2007 11:15:10 GMT]]></title><description><![CDATA[<p>Ja, eine derartige Abfrage macht den Ärger</p>
<pre><code>#if _WIN32_WINNT &gt; 0x0500 || defined(WINBASE_DECLARE_GET_MODULE_HANDLE_EX) || ISOLATION_AWARE_ENABLED
</code></pre>
<p>Es liegt an der Windows Versionsabfrage. Aber ist das nicht ein Parameter der vom Compiler selbst gesetzt wird ?</p>
<p>Ich benutze doch WXP prof. Multilanguage mit allen verfügbaren Updates.<br />
Kann ich rauskriegen welchen Wert BDS2006 für _WIN32_WINNT angenommen hat ?<br />
Oder muss ich den etwas selbst setzen ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1395128</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1395128</guid><dc:creator><![CDATA[MyOwnShadow]]></dc:creator><pubDate>Wed, 31 Oct 2007 11:15:10 GMT</pubDate></item><item><title><![CDATA[Reply to BDS 2006 kennt GetModuleHandleEx nicht ??? on Wed, 31 Oct 2007 14:47:55 GMT]]></title><description><![CDATA[<p>Habe jetzt herasugefunden, das BDS2006 in windows.h folgendes steht:</p>
<pre><code>#if defined(__BORLANDC__)
#    ifndef _WIN32_WINNT
#        define _WIN32_WINNT 0x0500  /* If not set, assume NT 5.00  */
#    endif
#    if defined(__cplusplus)
#       define NOMINMAX              /* for WINDEF.H */
#    else
#        define NONAMELESSUNION      /* for OAIDL.H, OBJIDL.H,...  */
#    endif
#    if defined(_UNICODE)
#        define UNICODE
#    endif
#endif /* __BORLANDC__ */
</code></pre>
<p>Es wird also immer nur W2000 angenommen und nicht WXP.<br />
So, nun kann ich den Wert ja auf 501 (WXP setzen), aber das mag mein Compiler ja nun gar nicht und meldet plötzlich aus der windows.hpp:<br />
E2040: Deklaration nicht ordnungsgemäß abgeschlossen.</p>
<pre><code>static const Shortint WTS_CONSOLE_CONNECT = 0x1;
static const Shortint WTS_CONSOLE_DISCONNECT = 0x2;
static const Shortint WTS_REMOTE_CONNECT = 0x3;
static const Shortint WTS_REMOTE_DISCONNECT = 0x4;
static const Shortint WTS_SESSION_LOGON = 0x5;
static const Shortint WTS_SESSION_LOGOFF = 0x6;
static const Shortint WTS_SESSION_LOCK = 0x7;
static const Shortint WTS_SESSION_UNLOCK = 0x8;
</code></pre>
<p>Das liegt daran, dass diese Definitionen nun bereits in der winuser.h definiert werden.</p>
<p>Ich drehe mich also im Kreis. BDS2006 tut also so, als ob wir mit W2000 arbeiten.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1395304</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1395304</guid><dc:creator><![CDATA[MyOwnShadow]]></dc:creator><pubDate>Wed, 31 Oct 2007 14:47:55 GMT</pubDate></item><item><title><![CDATA[Reply to BDS 2006 kennt GetModuleHandleEx nicht ??? on Wed, 31 Oct 2007 16:11:53 GMT]]></title><description><![CDATA[<p>MyOwnShadow schrieb:</p>
<blockquote>
<p>Habe jetzt herasugefunden, das BDS2006 in windows.h folgendes steht:</p>
<pre><code>#if defined(__BORLANDC__)
#    ifndef _WIN32_WINNT
#        define _WIN32_WINNT 0x0500  /* [b]If not set[/b], assume NT 5.00  */
</code></pre>
</blockquote>
<p>Also nix von wegen <strong>immer</strong> W2000.</p>
<p>Das Ganze steht in der windows.h des BCB2007 übrigens genauso, trotzdem wird GetModuleHandleEx dort erkannt.<br />
Welchen Wert hat _WIN32_WINNT denn beim Programmstart bei dir?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1395383</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1395383</guid><dc:creator><![CDATA[Jansen]]></dc:creator><pubDate>Wed, 31 Oct 2007 16:11:53 GMT</pubDate></item><item><title><![CDATA[Reply to BDS 2006 kennt GetModuleHandleEx nicht ??? on Wed, 31 Oct 2007 21:16:08 GMT]]></title><description><![CDATA[<p>MyOwnShadow schrieb:</p>
<blockquote>
<p>Das liegt daran, dass diese Definitionen nun bereits in der winuser.h definiert werden.</p>
</blockquote>
<p>Kommentiere sie einfach in Windows.hpp aus.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1395621</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1395621</guid><dc:creator><![CDATA[audacia]]></dc:creator><pubDate>Wed, 31 Oct 2007 21:16:08 GMT</pubDate></item><item><title><![CDATA[Reply to BDS 2006 kennt GetModuleHandleEx nicht ??? on Fri, 02 Nov 2007 10:21:42 GMT]]></title><description><![CDATA[<p>Wo hast du das define denn definiert?<br />
Am besten du setzt es in den Projekt-Optionen und kompilierst noch mal dein gesamtes Projekt neu.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1396294</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1396294</guid><dc:creator><![CDATA[Th]]></dc:creator><pubDate>Fri, 02 Nov 2007 10:21:42 GMT</pubDate></item></channel></rss>