<?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[Problem mit GetProcAddress]]></title><description><![CDATA[<p>Hallo zusammen, ich habe ein Problem damit, funktionen aus einer DLL zu laden. Weiss jemand von euch vielleicht, was ich falsch gemacht habe?</p>
<p>APP - Code</p>
<pre><code class="language-cpp">int __stdcall WinMain(HINSTANCE hInst,HINSTANCE hPrevInst,LPSTR lpCmd,int nShowCmd){
 HINSTANCE hInstDLL = LoadLibrary(&quot;mydll.dll&quot;);
 HOOKPROC  fnc      = (HOOKPROC)GetProcAddress(hInstDLL,&quot;MsgProc&quot;);

 return 0;
}
</code></pre>
<p>DLL - Code</p>
<pre><code class="language-cpp">__declspec(dllexport) long __stdcall MsgProc(int nCode,WPARAM wParam,LPARAM lParam){
 MessageBox(0,&quot;lkj&quot;,&quot;klj&quot;,MB_OK);
 return 0;
}

int __stdcall DllMain(HINSTANCE hInst,DWORD dwReason,void* pReserved){
 return 1;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/119077/problem-mit-getprocaddress</link><generator>RSS for Node</generator><lastBuildDate>Sat, 04 Jul 2026 13:35:51 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/119077.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 27 Aug 2005 15:10:02 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem mit GetProcAddress on Sat, 27 Aug 2005 15:10:02 GMT]]></title><description><![CDATA[<p>Hallo zusammen, ich habe ein Problem damit, funktionen aus einer DLL zu laden. Weiss jemand von euch vielleicht, was ich falsch gemacht habe?</p>
<p>APP - Code</p>
<pre><code class="language-cpp">int __stdcall WinMain(HINSTANCE hInst,HINSTANCE hPrevInst,LPSTR lpCmd,int nShowCmd){
 HINSTANCE hInstDLL = LoadLibrary(&quot;mydll.dll&quot;);
 HOOKPROC  fnc      = (HOOKPROC)GetProcAddress(hInstDLL,&quot;MsgProc&quot;);

 return 0;
}
</code></pre>
<p>DLL - Code</p>
<pre><code class="language-cpp">__declspec(dllexport) long __stdcall MsgProc(int nCode,WPARAM wParam,LPARAM lParam){
 MessageBox(0,&quot;lkj&quot;,&quot;klj&quot;,MB_OK);
 return 0;
}

int __stdcall DllMain(HINSTANCE hInst,DWORD dwReason,void* pReserved){
 return 1;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/859674</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/859674</guid><dc:creator><![CDATA[3dfreak]]></dc:creator><pubDate>Sat, 27 Aug 2005 15:10:02 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit GetProcAddress on Sat, 27 Aug 2005 15:23:44 GMT]]></title><description><![CDATA[<p>Du hast keine .def Datei erstellt. Wenn du das nicht machst ist der Funktionsname nicht MsgProc sondern sieht etwas anders aus.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/859681</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/859681</guid><dc:creator><![CDATA[hellseher]]></dc:creator><pubDate>Sat, 27 Aug 2005 15:23:44 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit GetProcAddress on Sat, 27 Aug 2005 15:44:02 GMT]]></title><description><![CDATA[<p>Ja das stimmt, wie mache ich den eine solche .def datei?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/859686</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/859686</guid><dc:creator><![CDATA[3dfreak]]></dc:creator><pubDate>Sat, 27 Aug 2005 15:44:02 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit GetProcAddress on Sat, 27 Aug 2005 15:59:34 GMT]]></title><description><![CDATA[<p>In der Datei muss stehen</p>
<p>EXPORTS<br />
MsgProc</p>
<p>und dann muss man die noch dem Compiler bekannt machen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/859691</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/859691</guid><dc:creator><![CDATA[hellseher]]></dc:creator><pubDate>Sat, 27 Aug 2005 15:59:34 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit GetProcAddress on Sat, 27 Aug 2005 16:26:26 GMT]]></title><description><![CDATA[<p>mach mal extern &quot;C&quot; vor die funktion oder guck in dependeny walker mit welchem namen die funktion exportiert wird</p>
]]></description><link>https://www.c-plusplus.net/forum/post/859696</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/859696</guid><dc:creator><![CDATA[Mary J Blige]]></dc:creator><pubDate>Sat, 27 Aug 2005 16:26:26 GMT</pubDate></item></channel></rss>