<?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[kleines prob mit dll]]></title><description><![CDATA[<p>hi leute,<br />
ich hab nach ner längeren Zeit nochmal angefangen zu programmieren und festgestellt, dass ich noch nichtmal mehr eine DLL geladen bekomm...:(</p>
<p>hoffe mir kann einer helfen hiermal mein Werk:</p>
<p>DLL</p>
<pre><code class="language-cpp">#include &quot;stdafx.h&quot;
#include &quot;windows.h&quot;
#include &quot;dll.h&quot;

#ifdef _MANAGED
#pragma managed(push, off)
#endif

BOOL APIENTRY DllMain( HMODULE hModule,
                       DWORD  ul_reason_for_call,
                       LPVOID lpReserved
					 )
{
    return TRUE;
}

EXPORT bool MSGBOX()
{
	MessageBox(NULL, L&quot;Nachricht aus der DLL !&quot;, L&quot; DLL &quot;, NULL);
	return true;
</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 bool MSGBOX();
</code></pre>
<p>programm:</p>
<pre><code class="language-cpp">#pragma comment(&quot;lib&quot;,&quot;dll.lib&quot;)
#include &quot;stdafx.h&quot;
#include &quot;windows.h&quot;
#include &quot;dll.h&quot;

int _tmain(int argc, _TCHAR* argv[])
{
	MSGBOX();
	return 0;
}
</code></pre>
<p>die Fehlermeldung:<br />
prog.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &quot;_MSGBOX&quot; in Funktion &quot;_wmain&quot;.<br />
C:\Dokumente und Einstellungen\as\Eigene Dateien\Visual Studio 2005\Projects\DLL-Test\prog\Debug\prog.exe : fatal error LNK1120: 1 nicht aufgelöste externe Verweise.</p>
<p>ich hoffe mal jmd kann mir helfen <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="🙂"
    /><br />
mfG noha</p>
<p>PS:<br />
ich hoffe es macht keinen Unterschied ob ich eine Konsolenanwendungs oder eine Windowsanwendungs - Projekt erstelle.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/218234/kleines-prob-mit-dll</link><generator>RSS for Node</generator><lastBuildDate>Wed, 15 Apr 2026 03:18:36 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/218234.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 17 Jul 2008 17:01:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to kleines prob mit dll on Thu, 17 Jul 2008 17:05:07 GMT]]></title><description><![CDATA[<p>hi leute,<br />
ich hab nach ner längeren Zeit nochmal angefangen zu programmieren und festgestellt, dass ich noch nichtmal mehr eine DLL geladen bekomm...:(</p>
<p>hoffe mir kann einer helfen hiermal mein Werk:</p>
<p>DLL</p>
<pre><code class="language-cpp">#include &quot;stdafx.h&quot;
#include &quot;windows.h&quot;
#include &quot;dll.h&quot;

#ifdef _MANAGED
#pragma managed(push, off)
#endif

BOOL APIENTRY DllMain( HMODULE hModule,
                       DWORD  ul_reason_for_call,
                       LPVOID lpReserved
					 )
{
    return TRUE;
}

EXPORT bool MSGBOX()
{
	MessageBox(NULL, L&quot;Nachricht aus der DLL !&quot;, L&quot; DLL &quot;, NULL);
	return true;
</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 bool MSGBOX();
</code></pre>
<p>programm:</p>
<pre><code class="language-cpp">#pragma comment(&quot;lib&quot;,&quot;dll.lib&quot;)
#include &quot;stdafx.h&quot;
#include &quot;windows.h&quot;
#include &quot;dll.h&quot;

int _tmain(int argc, _TCHAR* argv[])
{
	MSGBOX();
	return 0;
}
</code></pre>
<p>die Fehlermeldung:<br />
prog.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &quot;_MSGBOX&quot; in Funktion &quot;_wmain&quot;.<br />
C:\Dokumente und Einstellungen\as\Eigene Dateien\Visual Studio 2005\Projects\DLL-Test\prog\Debug\prog.exe : fatal error LNK1120: 1 nicht aufgelöste externe Verweise.</p>
<p>ich hoffe mal jmd kann mir helfen <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="🙂"
    /><br />
mfG noha</p>
<p>PS:<br />
ich hoffe es macht keinen Unterschied ob ich eine Konsolenanwendungs oder eine Windowsanwendungs - Projekt erstelle.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1548980</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1548980</guid><dc:creator><![CDATA[noha_391]]></dc:creator><pubDate>Thu, 17 Jul 2008 17:05:07 GMT</pubDate></item><item><title><![CDATA[Reply to kleines prob mit dll on Thu, 17 Jul 2008 17:34:37 GMT]]></title><description><![CDATA[<p>Beim Programm, welches die DLL laden soll, musst du bei der deklaration der Funktion __declspec(dllimport) verwenden, nicht export.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1548995</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1548995</guid><dc:creator><![CDATA[asfhsl]]></dc:creator><pubDate>Thu, 17 Jul 2008 17:34:37 GMT</pubDate></item><item><title><![CDATA[Reply to kleines prob mit dll on Thu, 17 Jul 2008 19:37:10 GMT]]></title><description><![CDATA[<p>das scheint nix zu ändern</p>
<p>wieder ähnliche Fehlermeldung:</p>
<p>prog.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &quot;&quot;__declspec(dllimport) bool __cdecl MSGBOX(void)&quot; (__imp_?MSGBOX@@YA_NXZ)&quot; in Funktion &quot;_wmain&quot;.<br />
C:\Dokumente und Einstellungen\as\Eigene Dateien\Visual Studio 2005\Projects\DLL-Test\prog\Debug\prog.exe : fatal error LNK1120: 1 nicht aufgelöste externe Verweise.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1549051</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1549051</guid><dc:creator><![CDATA[noha_391]]></dc:creator><pubDate>Thu, 17 Jul 2008 19:37:10 GMT</pubDate></item><item><title><![CDATA[Reply to kleines prob mit dll on Thu, 17 Jul 2008 19:58:00 GMT]]></title><description><![CDATA[<p>In dem Modul in dem Du die DLL benutzen willsst musst Du</p>
<pre><code class="language-cpp">__declspec( dllimport )
</code></pre>
<p>verwenden! Und nicht nochmal die Funktion als extportiert angeben.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1549061</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1549061</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Thu, 17 Jul 2008 19:58:00 GMT</pubDate></item><item><title><![CDATA[Reply to kleines prob mit dll on Thu, 17 Jul 2008 20:25:09 GMT]]></title><description><![CDATA[<p>in dem prog dass die DLL benutzen soll, habe ich die Funktion folgendermaßen bekannt gemacht:</p>
<pre><code class="language-cpp">__declspec (dllimport) bool MSGBOX();
</code></pre>
<p>wenn das so richtig ist, liegt der fehler da nicht</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1549073</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1549073</guid><dc:creator><![CDATA[noha_391]]></dc:creator><pubDate>Thu, 17 Jul 2008 20:25:09 GMT</pubDate></item><item><title><![CDATA[Reply to kleines prob mit dll on Thu, 17 Jul 2008 22:10:28 GMT]]></title><description><![CDATA[<p>Hast du auch die zur DLL passende Lib eingebunden?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1549091</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1549091</guid><dc:creator><![CDATA[Badestrand]]></dc:creator><pubDate>Thu, 17 Jul 2008 22:10:28 GMT</pubDate></item><item><title><![CDATA[Reply to kleines prob mit dll on Fri, 18 Jul 2008 06:35:14 GMT]]></title><description><![CDATA[<p>noha_391 schrieb:</p>
<blockquote>
<p>in dem prog dass die DLL benutzen soll, habe ich die Funktion folgendermaßen bekannt gemacht:</p>
<pre><code class="language-cpp">__declspec (dllimport) bool MSGBOX();
</code></pre>
</blockquote>
<p>Da fehlt dann aber noch ein &quot;extern &quot;C&quot;&quot;.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1549145</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1549145</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Fri, 18 Jul 2008 06:35:14 GMT</pubDate></item><item><title><![CDATA[Reply to kleines prob mit dll on Sat, 19 Jul 2008 02:32:07 GMT]]></title><description><![CDATA[<p>ist es auch nicht, bekomm trotzdem die Fehlermeldung:</p>
<p>prog.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &quot;__imp__MSGBOX&quot; in Funktion &quot;_wmain&quot;.<br />
C:\Dokumente und Einstellungen\as\Eigene Dateien\Visual Studio 2005\Projects\DLL-Test\prog\Debug\prog.exe : fatal error LNK1120: 1 nicht aufgelöste externe Verweise.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1549646</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1549646</guid><dc:creator><![CDATA[noha_391]]></dc:creator><pubDate>Sat, 19 Jul 2008 02:32:07 GMT</pubDate></item><item><title><![CDATA[Reply to kleines prob mit dll on Sat, 19 Jul 2008 06:30:26 GMT]]></title><description><![CDATA[<p>Dann Lege mal dieses Mini-Projekt irgendwo ab, damit man sich das mal ansehen kann.</p>
<p>Schau mal mit DEPENDS.EXE in die DLL hinein damit Du siehst welche Signatur die Funktion hat.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1549662</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1549662</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Sat, 19 Jul 2008 06:30:26 GMT</pubDate></item><item><title><![CDATA[Reply to kleines prob mit dll on Sat, 19 Jul 2008 21:31:18 GMT]]></title><description><![CDATA[<p>werde es morgen mal zum angucken bereitstellen....</p>
<p>was ist DEPENDS ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1549970</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1549970</guid><dc:creator><![CDATA[noha_391]]></dc:creator><pubDate>Sat, 19 Jul 2008 21:31:18 GMT</pubDate></item><item><title><![CDATA[Reply to kleines prob mit dll on Sun, 20 Jul 2008 13:56:27 GMT]]></title><description><![CDATA[<p>Ein Tool mit dem man die Entry-Points von DLLs ansehen, kann, bzw. welche externen DLLs von einem Moudl verwendet werden.</p>
<p>Gehört als Tool zum Visual Studio! Oder auch hier: <a href="http://dependencywalker.com/" rel="nofollow">http://dependencywalker.com/</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1550217</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1550217</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Sun, 20 Jul 2008 13:56:27 GMT</pubDate></item><item><title><![CDATA[Reply to kleines prob mit dll on Sun, 20 Jul 2008 14:04:25 GMT]]></title><description><![CDATA[<p>hier das projekt:</p>
<p><a href="http://rapidshare.com/files/131114709/prog.rar.html" rel="nofollow">http://rapidshare.com/files/131114709/prog.rar.html</a><br />
<a href="http://rapidshare.com/files/131114710/Dll.rar.html" rel="nofollow">http://rapidshare.com/files/131114710/Dll.rar.html</a></p>
<p>depends sagt erkennt schonaml die funktion die sich dort befindet<br />
aber ich bekomm 2 Warnungen vom Programm ( mein englisch ist nicht so gut aber ich glaube mal, dass das nix mit meinem Problem zu tun hat)</p>
<p>Warning: At least one delay-load dependency module was not found.<br />
Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1550219</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1550219</guid><dc:creator><![CDATA[noha_391]]></dc:creator><pubDate>Sun, 20 Jul 2008 14:04:25 GMT</pubDate></item><item><title><![CDATA[Reply to kleines prob mit dll on Sun, 20 Jul 2008 14:11:39 GMT]]></title><description><![CDATA[<p>Argh...</p>
<p>Ist Dir eigentlich nicht klar, dass Du auch die DLL.LIB irgendwo in dem PROG-Projekt hinterlegen musst. Wie soll den PROG.SLN wissen wo die DLL.LIB liegt.</p>
<p>Du hast nur angegeben suche sie dort....</p>
<p>Am einfachsten geht, dass indem Du in der Proj-Solution die DLL:vcproj einfügst und eine Abhängigkeit zwischen Prog und Dll herstellst.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1550232</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1550232</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Sun, 20 Jul 2008 14:11:39 GMT</pubDate></item><item><title><![CDATA[Reply to kleines prob mit dll on Sun, 20 Jul 2008 15:06:06 GMT]]></title><description><![CDATA[<p>ich habe die lib in das Verzeichnis Dll und debug gepackt, so dass beim kompilieren darauf zugegriffen werden kann...</p>
<p>( sonst bekäm ich doch die Meldung dass die Datei nicht gefunden werden konnte... )</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1550267</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1550267</guid><dc:creator><![CDATA[noha_391]]></dc:creator><pubDate>Sun, 20 Jul 2008 15:06:06 GMT</pubDate></item><item><title><![CDATA[Reply to kleines prob mit dll on Sun, 20 Jul 2008 15:37:39 GMT]]></title><description><![CDATA[<p>Ich habe einfach nur das DLL Projekt eingefügt und das wars...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1550285</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1550285</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Sun, 20 Jul 2008 15:37:39 GMT</pubDate></item><item><title><![CDATA[Reply to kleines prob mit dll on Sun, 20 Jul 2008 21:34:35 GMT]]></title><description><![CDATA[<p>was hast du denn genau gemacht ? bzw wie hast du es gemacht ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1550540</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1550540</guid><dc:creator><![CDATA[noha_391]]></dc:creator><pubDate>Sun, 20 Jul 2008 21:34:35 GMT</pubDate></item><item><title><![CDATA[Reply to kleines prob mit dll on Mon, 21 Jul 2008 06:05:47 GMT]]></title><description><![CDATA[<p>Habe ich doch geschrieben: In die Solution der EXE habe ich das DLL Projekt eingefügtund die Projekt Abhängigkeiten gesetzt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1550631</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1550631</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Mon, 21 Jul 2008 06:05:47 GMT</pubDate></item><item><title><![CDATA[Reply to kleines prob mit dll on Mon, 21 Jul 2008 10:40:51 GMT]]></title><description><![CDATA[<p>Wenn die DLL nicht im selben Verzeichnis wie das Programm liegt, musst du dem Linker das Verzeichnis hinzufügen, bei Code::Blocks heißt der Tab Search directories.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1550821</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1550821</guid><dc:creator><![CDATA[McLove]]></dc:creator><pubDate>Mon, 21 Jul 2008 10:40:51 GMT</pubDate></item><item><title><![CDATA[Reply to kleines prob mit dll on Tue, 22 Jul 2008 15:58:56 GMT]]></title><description><![CDATA[<p>aber die dll liegt doch im gleichen Verzeichnis wie das Programm, und auch die lib, da ich diese dorthin kopiert habe...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1551793</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1551793</guid><dc:creator><![CDATA[noha_391]]></dc:creator><pubDate>Tue, 22 Jul 2008 15:58:56 GMT</pubDate></item></channel></rss>