<?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[Frage zu FAQ-Beitrag &amp;quot;DLL&amp;quot;]]></title><description><![CDATA[<p>N'Abend<br />
Habe mir die Beschreibung fürs erstellen der Lib durchgelesen. Ich binde den Header ein, und auch die Lib (via #pragma comment (libs, &quot;&quot;)). Es wird alles Fehler- und Warnungslos compiliert, aber trotzdem sagt er mir, dass wenn ich das Programm starte, die Anweisugn 0xc0000142 o.ä nicht initialisiert werden konnte, also mein Programm nicht startet. Ich habe auch schon die Lib zu linken, aber auch erfolglos. Kann mir jemand sagen, was ich falsch mache?</p>
<p>Mfg Ominion</p>
<p>PS: Bitte nicht ins Compilerforum verschieben, da selbst auf dem Mond mehr aktive Menschen sind, als in diesem Subforum...</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/171641/frage-zu-faq-beitrag-quot-dll-quot</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Jul 2026 13:39:07 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/171641.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 27 Jan 2007 18:49:02 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Frage zu FAQ-Beitrag &amp;quot;DLL&amp;quot; on Sat, 27 Jan 2007 18:49:02 GMT]]></title><description><![CDATA[<p>N'Abend<br />
Habe mir die Beschreibung fürs erstellen der Lib durchgelesen. Ich binde den Header ein, und auch die Lib (via #pragma comment (libs, &quot;&quot;)). Es wird alles Fehler- und Warnungslos compiliert, aber trotzdem sagt er mir, dass wenn ich das Programm starte, die Anweisugn 0xc0000142 o.ä nicht initialisiert werden konnte, also mein Programm nicht startet. Ich habe auch schon die Lib zu linken, aber auch erfolglos. Kann mir jemand sagen, was ich falsch mache?</p>
<p>Mfg Ominion</p>
<p>PS: Bitte nicht ins Compilerforum verschieben, da selbst auf dem Mond mehr aktive Menschen sind, als in diesem Subforum...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1218251</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1218251</guid><dc:creator><![CDATA[Ominion]]></dc:creator><pubDate>Sat, 27 Jan 2007 18:49:02 GMT</pubDate></item><item><title><![CDATA[Reply to Frage zu FAQ-Beitrag &amp;quot;DLL&amp;quot; on Sat, 27 Jan 2007 18:53:24 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>Welche IDE benutzt du ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1218253</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1218253</guid><dc:creator><![CDATA[mikey]]></dc:creator><pubDate>Sat, 27 Jan 2007 18:53:24 GMT</pubDate></item><item><title><![CDATA[Reply to Frage zu FAQ-Beitrag &amp;quot;DLL&amp;quot; on Sat, 27 Jan 2007 18:55:21 GMT]]></title><description><![CDATA[<p>Oh sry vergessen...das gleich wie in dem Beitrag Borland command-line Compiler...auf deutsch keine^^</p>
<p>Mfg Ominion</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1218254</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1218254</guid><dc:creator><![CDATA[Ominion]]></dc:creator><pubDate>Sat, 27 Jan 2007 18:55:21 GMT</pubDate></item><item><title><![CDATA[Reply to Frage zu FAQ-Beitrag &amp;quot;DLL&amp;quot; on Sat, 27 Jan 2007 18:55:58 GMT]]></title><description><![CDATA[<p>Kein Problem <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
<p>Sorry, aber mit dem Borland kenne ich mich leider nicht aus, warte mal auf die anderen, die helfen dir bestimmt.</p>
<p>Grüße,</p>
<p>mikey.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1218255</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1218255</guid><dc:creator><![CDATA[mikey]]></dc:creator><pubDate>Sat, 27 Jan 2007 18:55:58 GMT</pubDate></item><item><title><![CDATA[Reply to Frage zu FAQ-Beitrag &amp;quot;DLL&amp;quot; on Sat, 27 Jan 2007 20:22:17 GMT]]></title><description><![CDATA[<p>Zeig mal den kompletten Quelltext (falls er schon umfangreicher ist, nur die relevanten Teile).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1218300</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1218300</guid><dc:creator><![CDATA[audacia]]></dc:creator><pubDate>Sat, 27 Jan 2007 20:22:17 GMT</pubDate></item><item><title><![CDATA[Reply to Frage zu FAQ-Beitrag &amp;quot;DLL&amp;quot; on Sat, 27 Jan 2007 20:30:58 GMT]]></title><description><![CDATA[<p>Von der Dll? Oder vom Programm? Ob ich dir nun den Quellcode gebe oder sage was ich gemacht habe, ist relativ egal, da das nur ein Funktionsaufruf ist...<br />
So binde ich das ein</p>
<pre><code class="language-cpp">...
#include &quot;header/dll.h&quot;
...
#pragma comment (lib, &quot;dll.lib&quot;)
...
DllFunktion ();
</code></pre>
<p>dll.h:</p>
<pre><code class="language-cpp">#ifdef __cplusplus
#define EXPORT extern &quot;C&quot; __declspec (dllexport)
#else
#define EXPORT __declspec (dllexport)
#endif

EXPORT void _stdcall DllFunktion ();
</code></pre>
<p>dll.cpp:</p>
<pre><code class="language-cpp">#include &lt;windows.h&gt;
#include &quot;dll.h&quot;

int WINAPI DllMain (HINSTANCE hInstance, DWORD fdwReason, PVOID pvReserved)
{
	return 0;
}

EXPORT void _stdcall DllFunktion (HWND hWnd, LPSTR lpText)
{
    MessageBox (NULL, &quot;DLL-Test&quot;, &quot;MessageBox&quot;, MB_OK);
}
</code></pre>
<p>Mfg Ominion</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1218307</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1218307</guid><dc:creator><![CDATA[Ominion]]></dc:creator><pubDate>Sat, 27 Jan 2007 20:30:58 GMT</pubDate></item><item><title><![CDATA[Reply to Frage zu FAQ-Beitrag &amp;quot;DLL&amp;quot; on Sat, 27 Jan 2007 20:33:52 GMT]]></title><description><![CDATA[<p>Zweimal dllexport?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1218310</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1218310</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Sat, 27 Jan 2007 20:33:52 GMT</pubDate></item><item><title><![CDATA[Reply to Frage zu FAQ-Beitrag &amp;quot;DLL&amp;quot; on Sat, 27 Jan 2007 20:36:40 GMT]]></title><description><![CDATA[<p>Einmal, wenn die DLL mit C++ verwendet wird, und einmal wenn sie mit C verwendet wird.</p>
<p>Mfg Ominion</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1218314</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1218314</guid><dc:creator><![CDATA[Ominion]]></dc:creator><pubDate>Sat, 27 Jan 2007 20:36:40 GMT</pubDate></item><item><title><![CDATA[Reply to Frage zu FAQ-Beitrag &amp;quot;DLL&amp;quot; on Sat, 27 Jan 2007 20:38:16 GMT]]></title><description><![CDATA[<p>In der EXE solltest du schon dllimport benutzen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1218315</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1218315</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Sat, 27 Jan 2007 20:38:16 GMT</pubDate></item><item><title><![CDATA[Reply to Frage zu FAQ-Beitrag &amp;quot;DLL&amp;quot; on Sat, 27 Jan 2007 20:40:26 GMT]]></title><description><![CDATA[<p>Also ich weiß jetzt nicht wie du das meinst...aus dll.h und dll.cpp entsteht die DLL. In der EXE benutze ich das garnicht, sondern nur die Funktion.</p>
<p>Mfg Ominion</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1218318</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1218318</guid><dc:creator><![CDATA[Ominion]]></dc:creator><pubDate>Sat, 27 Jan 2007 20:40:26 GMT</pubDate></item><item><title><![CDATA[Reply to Frage zu FAQ-Beitrag &amp;quot;DLL&amp;quot; on Sat, 27 Jan 2007 21:22:07 GMT]]></title><description><![CDATA[<p>#pragma comment ist AFAIK eine Erweiterung des Microsoft-Compilers. Beim BCC kannst du stattdessen #pragma link &quot;...&quot; verwenden. Alternativ funktioniert das auch über Compiler-Switches (einfach bcc32 mal mit dem Parameter /? aufrufen und schauen).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1218348</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1218348</guid><dc:creator><![CDATA[audacia]]></dc:creator><pubDate>Sat, 27 Jan 2007 21:22:07 GMT</pubDate></item><item><title><![CDATA[Reply to Frage zu FAQ-Beitrag &amp;quot;DLL&amp;quot; on Sat, 27 Jan 2007 21:29:54 GMT]]></title><description><![CDATA[<p>Hat leider gar nichts gebracht...hatte den gleichen Effekt wie mit #pragma comment</p>
<p>Mfg Ominion</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1218354</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1218354</guid><dc:creator><![CDATA[Ominion]]></dc:creator><pubDate>Sat, 27 Jan 2007 21:29:54 GMT</pubDate></item><item><title><![CDATA[Reply to Frage zu FAQ-Beitrag &amp;quot;DLL&amp;quot; on Sun, 28 Jan 2007 05:50:47 GMT]]></title><description><![CDATA[<p>Ominion schrieb:</p>
<blockquote>
<p>aus dll.h und dll.cpp entsteht die DLL. In der EXE benutze ich das garnicht</p>
</blockquote>
<p>Du bindest doch die dll.h in der EXE ein, oder ist das eine andere Datei?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1218448</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1218448</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Sun, 28 Jan 2007 05:50:47 GMT</pubDate></item><item><title><![CDATA[Reply to Frage zu FAQ-Beitrag &amp;quot;DLL&amp;quot; on Sun, 28 Jan 2007 09:55:59 GMT]]></title><description><![CDATA[<p>Ja da hast du Recht...aber wo soll ich das denn sont hinschreiben? Oder soll ich nen neuen Header nur für das Programm machen?</p>
<p>Mfg Ominion</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1218475</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1218475</guid><dc:creator><![CDATA[Ominion]]></dc:creator><pubDate>Sun, 28 Jan 2007 09:55:59 GMT</pubDate></item><item><title><![CDATA[Reply to Frage zu FAQ-Beitrag &amp;quot;DLL&amp;quot; on Tue, 30 Jan 2007 15:51:43 GMT]]></title><description><![CDATA[<p>habe das jetzt schon vor längerem so gemacht, wie ich es selbst vorgeschlagen habe, hat aber auch nichts geholfen.</p>
<p>Mfg Ominion</p>
<p>PS: *push*</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1219952</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1219952</guid><dc:creator><![CDATA[Ominion]]></dc:creator><pubDate>Tue, 30 Jan 2007 15:51:43 GMT</pubDate></item><item><title><![CDATA[Reply to Frage zu FAQ-Beitrag &amp;quot;DLL&amp;quot; on Tue, 30 Jan 2007 19:01:23 GMT]]></title><description><![CDATA[<p>Also ich erinnere mich, dass man beim dynamischen Linken den Funktionsnamen mit einem &quot;_&quot; versehen musste, wenn man die DLL mit dem Borland Compiler erstellt hat. Quasi so:</p>
<pre><code class="language-cpp">//DLL.cpp

DLLEXPORT void MyFunc (...)
...
</code></pre>
<pre><code class="language-cpp">//App.cpp
...
&lt;pFunc&gt; = GetProcAddress(&lt;hDll&gt;, &quot;_MyFunc&quot;)
...
</code></pre>
<p>Bei mit einem Microsoft Compiler erstellten DLLs ist das nicht nötig.</p>
<p>Ich weiss nicht, ob das Auswirkungen auf das statische Linken hat, aber ich wollte es mal erwähnen.</p>
<p>Vielleicht hilft dir das ja.</p>
<p>Maffe</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1220094</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1220094</guid><dc:creator><![CDATA[Maffe001]]></dc:creator><pubDate>Tue, 30 Jan 2007 19:01:23 GMT</pubDate></item><item><title><![CDATA[Reply to Frage zu FAQ-Beitrag &amp;quot;DLL&amp;quot; on Fri, 02 Feb 2007 10:02:26 GMT]]></title><description><![CDATA[<p>Also irgendwie funktioniert gar nichts, was das anbelangt...<br />
Ich habe da jetzt mal eine bitte:<br />
Wenn jemand auch mit den Borland Command-Line Compiler 5.5.1 arbeitet und funktionierende Libs erstellen kann, kann der bitte mal die Compiler-Anweisungen und Source für die DLL und das Programm wo die benutzt wird posten? Also ein Punkt davon würde ja auchschon gut sein</p>
<p>DIV Ominion</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1221590</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1221590</guid><dc:creator><![CDATA[Ominion]]></dc:creator><pubDate>Fri, 02 Feb 2007 10:02:26 GMT</pubDate></item></channel></rss>