<?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[MFC DLL funktioniert nicht]]></title><description><![CDATA[<p>Ich habe eine MFC DLL erstellt und möchte diese nun in ein anderes Projekt einbinden. Dies funktioniert auch noch, sobald ich jedoch die Applikation starte und einen Datentyp der Klasse welche sich in der MFC befindet erstellen möchte kommt immer folgender Fehler:<br />
File: APPcore<br />
Line 235<br />
enhalte einen Fehler!</p>
<p>Diese Fehlermeldung kommt sobal die Funktion:CDBConnectorApp::CDBConnectorApp()<br />
aufgerufen wird!</p>
<p>Kann mir jemand sagen, wo mein Fehler liegt?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/169303/mfc-dll-funktioniert-nicht</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 13:44:53 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/169303.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 04 Jan 2007 08:01:42 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to MFC DLL funktioniert nicht on Thu, 04 Jan 2007 08:01:42 GMT]]></title><description><![CDATA[<p>Ich habe eine MFC DLL erstellt und möchte diese nun in ein anderes Projekt einbinden. Dies funktioniert auch noch, sobald ich jedoch die Applikation starte und einen Datentyp der Klasse welche sich in der MFC befindet erstellen möchte kommt immer folgender Fehler:<br />
File: APPcore<br />
Line 235<br />
enhalte einen Fehler!</p>
<p>Diese Fehlermeldung kommt sobal die Funktion:CDBConnectorApp::CDBConnectorApp()<br />
aufgerufen wird!</p>
<p>Kann mir jemand sagen, wo mein Fehler liegt?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1202410</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1202410</guid><dc:creator><![CDATA[addict]]></dc:creator><pubDate>Thu, 04 Jan 2007 08:01:42 GMT</pubDate></item><item><title><![CDATA[Reply to MFC DLL funktioniert nicht on Thu, 04 Jan 2007 08:21:42 GMT]]></title><description><![CDATA[<p>Und welcher Code ist an dieser Stelle zu finden?<br />
Der ASSERT hat ja eine Ursache in einer bestimmten Bedingung, die nicht erfüllt wird.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1202417</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1202417</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Thu, 04 Jan 2007 08:21:42 GMT</pubDate></item><item><title><![CDATA[Reply to MFC DLL funktioniert nicht on Thu, 04 Jan 2007 08:49:13 GMT]]></title><description><![CDATA[<p>ASSERT(AfxGetThread() == NULL);<br />
Sehr wahrscheinlich ist etwas in der DLL welche ich erstellt habe nicht in Ordnung, aber ich habe keine Ahnung was es sein könnte...<br />
Ich finde es auch sehr merkwürdig, dass die Funktion: CDBConnectorApp::CDBConnectorApp() der DLL bereits einmal aufgerufen wird, wenn die Software gestartet jedoch noch kein Objekt von CDBConnectorApp angelegt wird!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1202433</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1202433</guid><dc:creator><![CDATA[addict]]></dc:creator><pubDate>Thu, 04 Jan 2007 08:49:13 GMT</pubDate></item><item><title><![CDATA[Reply to MFC DLL funktioniert nicht on Thu, 04 Jan 2007 08:56:03 GMT]]></title><description><![CDATA[<p>Vermutlich hast Du eine globale Variable mit &quot;CDBConnectorApp&quot; irgendwo deklariert...<br />
Schau doch einfach im Callstack nach, wer sie aufruft!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1202442</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1202442</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Thu, 04 Jan 2007 08:56:03 GMT</pubDate></item><item><title><![CDATA[Reply to MFC DLL funktioniert nicht on Thu, 04 Jan 2007 09:08:52 GMT]]></title><description><![CDATA[<p>Oder er hat eine Extension DLL und hat die EXE Datei nicht mit der SharedDLL Version der MFC gelinkt!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1202453</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1202453</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Thu, 04 Jan 2007 09:08:52 GMT</pubDate></item><item><title><![CDATA[Reply to MFC DLL funktioniert nicht on Thu, 04 Jan 2007 09:28:55 GMT]]></title><description><![CDATA[<p>Nein ich habe nur eine Deklaration von CDBConnectorApp!</p>
<p>Martin Richter schrieb:</p>
<blockquote>
<p>Oder er hat eine Extension DLL und hat die EXE Datei nicht mit der SharedDLL Version der MFC gelinkt!</p>
</blockquote>
<p>Wie und wo kann und muss ich dies nachschauen, beziehungsweise ändern?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1202461</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1202461</guid><dc:creator><![CDATA[addict]]></dc:creator><pubDate>Thu, 04 Jan 2007 09:28:55 GMT</pubDate></item><item><title><![CDATA[Reply to MFC DLL funktioniert nicht on Thu, 04 Jan 2007 09:35:18 GMT]]></title><description><![CDATA[<p>Schau mal in die Projekteinstellungen ob Du dort die MFC statisch bindest oder die als Shared DLL!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1202464</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1202464</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Thu, 04 Jan 2007 09:35:18 GMT</pubDate></item><item><title><![CDATA[Reply to MFC DLL funktioniert nicht on Thu, 04 Jan 2007 09:44:48 GMT]]></title><description><![CDATA[<p>Ich habe nun unter Verwendung von MFC &quot;MFC in einer gemeinsam genutzten DLL verwenden&quot; ausgewählt. (bei beiden Projekten - exe und DLL die selbe Einstellung) jedoch funktioniert es nicht so! Auch nicht mit &quot;MFC in einer Statischen Bibliothek verwenden&quot; kommt immernoch der selbe Fehler!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1202479</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1202479</guid><dc:creator><![CDATA[addict]]></dc:creator><pubDate>Thu, 04 Jan 2007 09:44:48 GMT</pubDate></item><item><title><![CDATA[Reply to MFC DLL funktioniert nicht on Thu, 04 Jan 2007 10:07:39 GMT]]></title><description><![CDATA[<p>Callstack!?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1202497</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1202497</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Thu, 04 Jan 2007 10:07:39 GMT</pubDate></item><item><title><![CDATA[Reply to MFC DLL funktioniert nicht on Thu, 04 Jan 2007 10:24:19 GMT]]></title><description><![CDATA[<p>Wo finde ich diesen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1202524</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1202524</guid><dc:creator><![CDATA[addict]]></dc:creator><pubDate>Thu, 04 Jan 2007 10:24:19 GMT</pubDate></item><item><title><![CDATA[Reply to MFC DLL funktioniert nicht on Thu, 04 Jan 2007 10:35:14 GMT]]></title><description><![CDATA[<p>Wenn der Assert auftritt auf &quot;Wiederholen&quot; drücken und dann (VS2005): &quot;Debug|Windows|Call Stack&quot;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1202538</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1202538</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Thu, 04 Jan 2007 10:35:14 GMT</pubDate></item><item><title><![CDATA[Reply to MFC DLL funktioniert nicht on Thu, 04 Jan 2007 10:50:54 GMT]]></title><description><![CDATA[<p>In der Aufrufliste wird dies angezeigt:<br />
&gt; DBConnector.dll!CWinApp::CWinApp(const char * lpszAppName=0x00000000) Zeile 235 + 0x1c C++</p>
<p>Wenn ich diese Zeilen auskommentiere:<br />
CDBConnectorApp theApp;</p>
<p>funktioniert es! Jedoch wenn ich die Applikation beenden möchte kommt ein Fehler!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1202555</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1202555</guid><dc:creator><![CDATA[addict]]></dc:creator><pubDate>Thu, 04 Jan 2007 10:50:54 GMT</pubDate></item><item><title><![CDATA[Reply to MFC DLL funktioniert nicht on Thu, 04 Jan 2007 11:23:30 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">CDBConnectorApp theApp;
</code></pre>
<p>Ist doch eine globale Variable die beim Laden der DLL instanziiert wird... jetzt ist nur noch die Frage was da genau schief geht... mhh...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1202591</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1202591</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Thu, 04 Jan 2007 11:23:30 GMT</pubDate></item><item><title><![CDATA[Reply to MFC DLL funktioniert nicht on Thu, 04 Jan 2007 11:45:56 GMT]]></title><description><![CDATA[<p>Sehr eigentümlich. Das ist also das CWinAp Objekt in Deiner DLL! Hast Du evtl. eine eigene DllMain definiert oder einen abweichenden Einsprungpunkt für die DLL?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1202616</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1202616</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Thu, 04 Jan 2007 11:45:56 GMT</pubDate></item><item><title><![CDATA[Reply to MFC DLL funktioniert nicht on Thu, 04 Jan 2007 12:10:56 GMT]]></title><description><![CDATA[<p>Ich habe das Problem nun folgendermassen gelöst:</p>
<pre><code class="language-cpp">CDBConnectorApp DBConnector;

CDBConnectorApp* CDBConnectorApp::Get()
{
	return &amp;DBConnector;
}
</code></pre>
<p>Wenn ich nun eine Funktion der DLL aufrufen möchte mache ich dies wie folgt:</p>
<pre><code class="language-cpp">CDBConnectorApp::Get()-&gt;FUNKTIONSNAME
</code></pre>
<p>So funktioniert das ganze nun ohne Probleme <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/1202638</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1202638</guid><dc:creator><![CDATA[addict]]></dc:creator><pubDate>Thu, 04 Jan 2007 12:10:56 GMT</pubDate></item><item><title><![CDATA[Reply to MFC DLL funktioniert nicht on Thu, 04 Jan 2007 12:24:48 GMT]]></title><description><![CDATA[<p>Und wieso soll das helfen? Du hast ja noch immer ein globales Objekt?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1202655</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1202655</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Thu, 04 Jan 2007 12:24:48 GMT</pubDate></item><item><title><![CDATA[Reply to MFC DLL funktioniert nicht on Thu, 04 Jan 2007 13:48:01 GMT]]></title><description><![CDATA[<p>Es wird aber nur noch 1x initialisiert...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1202731</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1202731</guid><dc:creator><![CDATA[addict]]></dc:creator><pubDate>Thu, 04 Jan 2007 13:48:01 GMT</pubDate></item></channel></rss>