<?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[LoadLibrary]]></title><description><![CDATA[<p>Hallo<br />
ich will meine DLL, die ich selbst geschrieben habe, in mein Programm mit hilfe von LoadLibrary() einbinden! das sieht so aus:</p>
<pre><code>#include &quot;stdafx.h&quot;
#include &quot;windows.h&quot;
#include &lt;iostream&gt;
using namespace std;

int _tmain(int argc, _TCHAR* argv[])
{
	HINSTANCE hDLL = LoadLibrary((LPCWSTR)&quot;F:\\Programmieren\\C++\\VS Workspace\\Dynamic-Link Libraries\\Release\\DLL.dll&quot;);
	if(hDLL!=NULL){
		cout &lt;&lt; &quot;DLL.dll geladen\n&quot;;
	}
	FreeLibrary(hDLL);
	system(&quot;Pause&quot;);
	return 0;
}
</code></pre>
<p>ich verwende VS 2008 und habe dem Projekt keine lib oder sonst was hinzugefügt (soweit ich weis muss man das ja bei loadlibrary() nicht!)<br />
Bei mir ist hDLL immer gleich null weil &quot;DLL.dll geladen\n&quot; nie ausgegeben wird! Was muss ich da ändern?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/257598/loadlibrary</link><generator>RSS for Node</generator><lastBuildDate>Thu, 10 Sep 2026 03:38:02 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/257598.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 30 Dec 2009 21:26:42 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to LoadLibrary on Wed, 30 Dec 2009 21:26:42 GMT]]></title><description><![CDATA[<p>Hallo<br />
ich will meine DLL, die ich selbst geschrieben habe, in mein Programm mit hilfe von LoadLibrary() einbinden! das sieht so aus:</p>
<pre><code>#include &quot;stdafx.h&quot;
#include &quot;windows.h&quot;
#include &lt;iostream&gt;
using namespace std;

int _tmain(int argc, _TCHAR* argv[])
{
	HINSTANCE hDLL = LoadLibrary((LPCWSTR)&quot;F:\\Programmieren\\C++\\VS Workspace\\Dynamic-Link Libraries\\Release\\DLL.dll&quot;);
	if(hDLL!=NULL){
		cout &lt;&lt; &quot;DLL.dll geladen\n&quot;;
	}
	FreeLibrary(hDLL);
	system(&quot;Pause&quot;);
	return 0;
}
</code></pre>
<p>ich verwende VS 2008 und habe dem Projekt keine lib oder sonst was hinzugefügt (soweit ich weis muss man das ja bei loadlibrary() nicht!)<br />
Bei mir ist hDLL immer gleich null weil &quot;DLL.dll geladen\n&quot; nie ausgegeben wird! Was muss ich da ändern?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1830088</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1830088</guid><dc:creator><![CDATA[Loader]]></dc:creator><pubDate>Wed, 30 Dec 2009 21:26:42 GMT</pubDate></item><item><title><![CDATA[Reply to LoadLibrary on Wed, 30 Dec 2009 21:39:44 GMT]]></title><description><![CDATA[<p>Du solltest Unicode erstmal deaktivieren und den Cast bei LoadLibrary weglassen. Oder du lässt es an und machst anstatt dem Cast ein L. Also so: L&quot;Unicode&quot;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1830093</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1830093</guid><dc:creator><![CDATA[player4245]]></dc:creator><pubDate>Wed, 30 Dec 2009 21:39:44 GMT</pubDate></item><item><title><![CDATA[Reply to LoadLibrary on Wed, 30 Dec 2009 22:43:25 GMT]]></title><description><![CDATA[<p>OK danke jetzt funkionierts!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1830114</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1830114</guid><dc:creator><![CDATA[Loader]]></dc:creator><pubDate>Wed, 30 Dec 2009 22:43:25 GMT</pubDate></item></channel></rss>