<?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[Aufrufen einer funktion]]></title><description><![CDATA[<p>Wie kann ich aus einer Dll eine Funktion in meinem hauptprogramm aufrufen?<br />
Muss ich da noch was deklarieren?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/141064/aufrufen-einer-funktion</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Jul 2026 07:27:06 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/141064.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 18 Mar 2006 22:17:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Aufrufen einer funktion on Sat, 18 Mar 2006 22:17:24 GMT]]></title><description><![CDATA[<p>Wie kann ich aus einer Dll eine Funktion in meinem hauptprogramm aufrufen?<br />
Muss ich da noch was deklarieren?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1019389</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1019389</guid><dc:creator><![CDATA[Stefan311]]></dc:creator><pubDate>Sat, 18 Mar 2006 22:17:24 GMT</pubDate></item><item><title><![CDATA[Reply to Aufrufen einer funktion on Sun, 19 Mar 2006 13:27:05 GMT]]></title><description><![CDATA[<p>[edit]ups hab die frage flasch gelesen... [/edit]</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1019396</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1019396</guid><dc:creator><![CDATA[mwoidt]]></dc:creator><pubDate>Sun, 19 Mar 2006 13:27:05 GMT</pubDate></item><item><title><![CDATA[Reply to Aufrufen einer funktion on Sat, 18 Mar 2006 22:36:39 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">// LOL.cpp : Defines the entry point for the console application.
//

#include &quot;stdafx.h&quot;
#include &quot;Windows.h&quot;

typedef (*PFN_DLL_LOL)(void);

extern &quot;C&quot; __declspec(dllexport) void LOL_ExeFunktion( void )
{
	printf(&quot;LOL!\n&quot;);
}

int main(int argc, char* argv[])
{
	PFN_DLL_LOL pfnLOLFunktion;

	HMODULE hMod = LoadLibrary(&quot;LOL&quot;);

	if( !hMod )
		printf(&quot;LOL Konnte DLL nicht laden LOL!\n&quot;);

	if( !(pfnLOLFunktion = (PFN_DLL_LOL)GetProcAddress( hMod, &quot;LOL_DllFunktion&quot; )) )
		printf(&quot;LOL Geht nich LOL!\n&quot;);

	pfnLOLFunktion();

	FreeLibrary(hMod);
	return 0;
}
</code></pre>
<pre><code class="language-cpp">// LOL2.cpp : Defines the entry point for the DLL application.
//

#include &quot;stdafx.h&quot;

typedef (*PFN_EXE_LOL)(void);

extern &quot;C&quot; _declspec(dllexport) void LOL_DllFunktion( void )
{
	PFN_EXE_LOL pfnLOLFunktion = (PFN_EXE_LOL) GetProcAddress( GetModuleHandle(0), &quot;LOL_ExeFunktion&quot; );

	if( !pfnLOLFunktion )
		return; // LOL!

	pfnLOLFunktion();
}

BOOL APIENTRY DllMain( HANDLE hModule, 
                       DWORD  ul_reason_for_call, 
                       LPVOID lpReserved
					 )
{
    return TRUE;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1019402</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1019402</guid><dc:creator><![CDATA[lol??]]></dc:creator><pubDate>Sat, 18 Mar 2006 22:36:39 GMT</pubDate></item><item><title><![CDATA[Reply to Aufrufen einer funktion on Sat, 18 Mar 2006 22:47:57 GMT]]></title><description><![CDATA[<p>Danke für die Antwort. Das was lol hingeschrieben hat mach ich nicht. Mein<br />
Compiler generiert eine Statische lib gleich mmit. Jetzt mach ich es halt über ne Datei.<br />
Also<br />
Program&gt;&gt;DLL&gt;&gt;DATEI&gt;&gt;Program<br />
Geht ja so.</p>
<p>Trotzdem Danke.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1019406</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1019406</guid><dc:creator><![CDATA[Stefan311]]></dc:creator><pubDate>Sat, 18 Mar 2006 22:47:57 GMT</pubDate></item></channel></rss>