<?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[DLL und VS 2013]]></title><description><![CDATA[<p>Hallo,</p>
<p>Ich habe eine weile mit der IDE VS 2010 gearbeitet und konnte da auch ohne Probleme eine DLL erstellen etc...</p>
<p>Jetzt habe ich das Problem, das es mit der Methode nicht mehr geht.</p>
<p>Hier war meine:</p>
<p>Header</p>
<pre><code>#ifdef DLL_EXPORT 
#define DLLAPI __declspec( dllexport ) 
#else 
#define DLLAPI __declspec( dllimport ) 
#endif 

class Test
{
public:
    int DLLAPI Rechne(int a, int b);
};
</code></pre>
<p>CPP</p>
<pre><code>int DLLAPI Test::Rechne(int a, int b)
{
    return a +b;
}
</code></pre>
<p>So war das glaube ich ungefähr, bloß sagt mir VS 2013, das er in der CPP Datei die Funktion nicht neu deklarieren kann oder so.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/323666/dll-und-vs-2013</link><generator>RSS for Node</generator><lastBuildDate>Wed, 15 Jul 2026 20:04:11 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/323666.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 09 Feb 2014 18:17:13 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to DLL und VS 2013 on Sun, 09 Feb 2014 18:17:13 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>Ich habe eine weile mit der IDE VS 2010 gearbeitet und konnte da auch ohne Probleme eine DLL erstellen etc...</p>
<p>Jetzt habe ich das Problem, das es mit der Methode nicht mehr geht.</p>
<p>Hier war meine:</p>
<p>Header</p>
<pre><code>#ifdef DLL_EXPORT 
#define DLLAPI __declspec( dllexport ) 
#else 
#define DLLAPI __declspec( dllimport ) 
#endif 

class Test
{
public:
    int DLLAPI Rechne(int a, int b);
};
</code></pre>
<p>CPP</p>
<pre><code>int DLLAPI Test::Rechne(int a, int b)
{
    return a +b;
}
</code></pre>
<p>So war das glaube ich ungefähr, bloß sagt mir VS 2013, das er in der CPP Datei die Funktion nicht neu deklarieren kann oder so.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2382389</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2382389</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Sun, 09 Feb 2014 18:17:13 GMT</pubDate></item><item><title><![CDATA[Reply to DLL und VS 2013 on Sun, 09 Feb 2014 18:20:02 GMT]]></title><description><![CDATA[<p>wenn du noch eine Fehlermeldung postest, kann man dir eventuell helfen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2382391</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2382391</guid><dc:creator><![CDATA[KN4CK3R]]></dc:creator><pubDate>Sun, 09 Feb 2014 18:20:02 GMT</pubDate></item><item><title><![CDATA[Reply to DLL und VS 2013 on Sun, 09 Feb 2014 18:30:46 GMT]]></title><description><![CDATA[<p>schmeiss das DLLAPI aus der implementation der funktion raus.</p>
<p>__declspec( dllexport ) bzw dllimport wird nur für die deklaration der Funktion benötigt und nicht für die konkrete implementation.</p>
<p>Denn der Verwender der DLL kennt auch nur die Deklaration.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2382395</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2382395</guid><dc:creator><![CDATA[firefly]]></dc:creator><pubDate>Sun, 09 Feb 2014 18:30:46 GMT</pubDate></item><item><title><![CDATA[Reply to DLL und VS 2013 on Sun, 09 Feb 2014 18:44:42 GMT]]></title><description><![CDATA[<p>ahh danke firefly für deine Antwort <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 />
Das funktioniert jetzt wunderbar, bloß frage ich mich, warum das ganze lib in VS2013 wie C# aufgebaut ist bzw NET?<br />
Das war bei VS2010 nicht so, das man das alles im Namespace machen muss</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2382399</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2382399</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Sun, 09 Feb 2014 18:44:42 GMT</pubDate></item><item><title><![CDATA[Reply to DLL und VS 2013 on Sun, 09 Feb 2014 19:12:44 GMT]]></title><description><![CDATA[<p>benutzt du vielleicht ein C++/CLI Projekt?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2382403</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2382403</guid><dc:creator><![CDATA[KN4CK3R]]></dc:creator><pubDate>Sun, 09 Feb 2014 19:12:44 GMT</pubDate></item><item><title><![CDATA[Reply to DLL und VS 2013 on Sun, 09 Feb 2014 20:11:15 GMT]]></title><description><![CDATA[<p>CLR Nutze ich für eine DLL in VS 2013 (Zum ersten mal).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2382413</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2382413</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Sun, 09 Feb 2014 20:11:15 GMT</pubDate></item><item><title><![CDATA[Reply to DLL und VS 2013 on Sun, 09 Feb 2014 21:06:36 GMT]]></title><description><![CDATA[<p>b4nan1 schrieb:</p>
<blockquote>
<p>CLR Nutze ich für eine DLL in VS 2013 (Zum ersten mal).</p>
</blockquote>
<p>Und wieso genau benutzt du C++/CLI anstatt C++?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2382417</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2382417</guid><dc:creator><![CDATA[dot]]></dc:creator><pubDate>Sun, 09 Feb 2014 21:06:36 GMT</pubDate></item><item><title><![CDATA[Reply to DLL und VS 2013 on Mon, 10 Feb 2014 16:20:42 GMT]]></title><description><![CDATA[<p>Weil es mir vom Compiler vorgeschlagen wird.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2382541</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2382541</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Mon, 10 Feb 2014 16:20:42 GMT</pubDate></item><item><title><![CDATA[Reply to DLL und VS 2013 on Mon, 10 Feb 2014 16:49:31 GMT]]></title><description><![CDATA[<p>DAS ist natürlich ein guter Grund <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2382547</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2382547</guid><dc:creator><![CDATA[KN4CK3R]]></dc:creator><pubDate>Mon, 10 Feb 2014 16:49:31 GMT</pubDate></item></channel></rss>