<?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[handle aus dll exportieren]]></title><description><![CDATA[<p>hallo alle zusammen,</p>
<p>gibts eine möglichkeit aus eine dll ein handle zu exportieren?</p>
<p>ich habe verschiedene Funktionen die mir z.B Zugangsdaten für eine MYSQL Anbindung hollen und automatisch bei der Datenbank anmelden... Ich würde gerne diese Funktionen in eine DLL auslagern, ich brauche aber ein MYSQL Handle zurück damit ich damit im Hauptprogramm arbeiten kann..<br />
Ist das möglich?</p>
<p>Danke...</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/163004/handle-aus-dll-exportieren</link><generator>RSS for Node</generator><lastBuildDate>Thu, 30 Jul 2026 09:49:58 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/163004.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 25 Oct 2006 08:19:15 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to handle aus dll exportieren on Wed, 25 Oct 2006 08:19:15 GMT]]></title><description><![CDATA[<p>hallo alle zusammen,</p>
<p>gibts eine möglichkeit aus eine dll ein handle zu exportieren?</p>
<p>ich habe verschiedene Funktionen die mir z.B Zugangsdaten für eine MYSQL Anbindung hollen und automatisch bei der Datenbank anmelden... Ich würde gerne diese Funktionen in eine DLL auslagern, ich brauche aber ein MYSQL Handle zurück damit ich damit im Hauptprogramm arbeiten kann..<br />
Ist das möglich?</p>
<p>Danke...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1160787</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1160787</guid><dc:creator><![CDATA[&amp;lt;&amp;lt;Samuel&amp;gt;&amp;gt;]]></dc:creator><pubDate>Wed, 25 Oct 2006 08:19:15 GMT</pubDate></item><item><title><![CDATA[Reply to handle aus dll exportieren on Wed, 25 Oct 2006 09:47:36 GMT]]></title><description><![CDATA[<p>naja einfach ne get-Methode schreiben und als Exportfunktion angeben</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1160873</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1160873</guid><dc:creator><![CDATA[Pellaeon]]></dc:creator><pubDate>Wed, 25 Oct 2006 09:47:36 GMT</pubDate></item><item><title><![CDATA[Reply to handle aus dll exportieren on Wed, 25 Oct 2006 12:55:48 GMT]]></title><description><![CDATA[<p>Beachte aber, dass dieses Handle nur in Deinem Prozess eine Gültigkeit hat, evtl. ist es sogar threadafin (dazu kenne ich MYSQL zu wenig).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1160990</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1160990</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Wed, 25 Oct 2006 12:55:48 GMT</pubDate></item><item><title><![CDATA[Reply to handle aus dll exportieren on Wed, 25 Oct 2006 14:34:59 GMT]]></title><description><![CDATA[<p>wie meinst du das? Wann verliert denn genau dieses Handle die Gültigkeit?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1161041</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1161041</guid><dc:creator><![CDATA[&amp;lt;&amp;lt;Samuel&amp;gt;&amp;gt;]]></dc:creator><pubDate>Wed, 25 Oct 2006 14:34:59 GMT</pubDate></item><item><title><![CDATA[Reply to handle aus dll exportieren on Wed, 25 Oct 2006 15:34:01 GMT]]></title><description><![CDATA[<p>Hmm naja ... hast de eine Funktion oder eine Klasse die sich um den MySQL Kram kümmert? Ich würde 2. nehmen ... und wenn de dann doch des MYSQL Ding haben willst einfach nen getter dafür in die Klasse packen ... funzt problem los ...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1161111</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1161111</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Wed, 25 Oct 2006 15:34:01 GMT</pubDate></item><item><title><![CDATA[Reply to handle aus dll exportieren on Wed, 25 Oct 2006 16:05:27 GMT]]></title><description><![CDATA[<p>Martin Richter schrieb:</p>
<blockquote>
<p>Beachte aber, dass dieses Handle nur in Deinem Prozess eine Gültigkeit hat, evtl. ist es sogar threadafin (dazu kenne ich MYSQL zu wenig).</p>
</blockquote>
<p>Dürfte doch kein Prob sein oder? Die DLL ist doch kein eigenständiger Prozess.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1161130</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1161130</guid><dc:creator><![CDATA[Pellaeon]]></dc:creator><pubDate>Wed, 25 Oct 2006 16:05:27 GMT</pubDate></item><item><title><![CDATA[Reply to handle aus dll exportieren on Wed, 25 Oct 2006 16:37:54 GMT]]></title><description><![CDATA[<p>1. der OP hat nicht gesagt wohin er das Handle übergeben will.<br />
2. Das Problem das das Handle threadafin ist müsste auch gekärt werden, ansonsten muss der OP halt garantieren, dass das Handle im, selben Thread verwendet wird.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1161148</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1161148</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Wed, 25 Oct 2006 16:37:54 GMT</pubDate></item><item><title><![CDATA[Reply to handle aus dll exportieren on Thu, 26 Oct 2006 07:15:00 GMT]]></title><description><![CDATA[<p>das Handle soll an das Hauptprogramm, welches die DLL aufruft weitergegeben werden...</p>
<p>@Devil: Muss ich nicht um Klassen in der DLL zu nutzen, die erweiterte Variante nehmen? Dafür muss ich aber die mfc DLL mitliefern, oder habe ich was falsches verstanden??? Bin nämlich ganz neu bei DLLs...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1161603</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1161603</guid><dc:creator><![CDATA[&amp;lt;&amp;lt;Samuel&amp;gt;&amp;gt;]]></dc:creator><pubDate>Thu, 26 Oct 2006 07:15:00 GMT</pubDate></item><item><title><![CDATA[Reply to handle aus dll exportieren on Thu, 26 Oct 2006 14:50:08 GMT]]></title><description><![CDATA[<p>Höö? Nein... eine Library muss doch nicht MFC nutzen um mit Klassen umgehen zu können ... einfach zum exportieren makieren(also die klasse...)...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1161977</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1161977</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Thu, 26 Oct 2006 14:50:08 GMT</pubDate></item><item><title><![CDATA[Reply to handle aus dll exportieren on Mon, 30 Oct 2006 07:57:53 GMT]]></title><description><![CDATA[<p>Noch ein Problem: ich wusste jetzt nicht ob ich ein neues Thread aufmachen sollte...</p>
<p>Ich habe 2 Dlls. Eine davon bindet die andere implizit ein...</p>
<p>Wenn ich im Hauptprogramm jetzt die Dlls einbinde, ist alles ok, solange ich nicht auf Funktionen zugreifen möchte die entweder CStrings zurückgeben oder CStrings als Übergabeparameter haben. Wenn dies der Fall ist, dann kommt der compiler mit folgende Meldung:</p>
<blockquote>
<p>test(Hauptprogramm) error LNK2019: Nicht aufgelöstes externes Symbol '&quot;public: void __thiscall CDatenbank(Dll Klasse)::readFile(Funktion mit CStrings als Übergabewerten)(class ATL::CStringT&lt;char,class StrTraitMFC_DLL&lt;char,class ATL::ChTraitsCRT&lt;char&gt; &gt; &gt;,class ATL::CStringT&lt;char,class StrTraitMFC_DLL&lt;char,class ATL::ChTraitsCRT&lt;char&gt; &gt; &gt;,class ATL::CStringT&lt;char,class StrTraitMFC_DLL&lt;char,class ATL::ChTraitsCRT&lt;char&gt; &gt; &gt;)&quot; (?readFile@CDatenbank@@QAEXV?<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>C</mi><mi>S</mi><mi>t</mi><mi>r</mi><mi>i</mi><mi>n</mi><mi>g</mi><mi>T</mi><mi mathvariant="normal">@</mi><mi>D</mi><mi>V</mi><mo>?</mo></mrow><annotation encoding="application/x-tex">CStringT@DV?</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.69444em;"></span><span class="strut bottom" style="height:0.8888799999999999em;vertical-align:-0.19444em;"></span><span class="base textstyle uncramped"><span class="mord mathit" style="margin-right:0.07153em;">C</span><span class="mord mathit" style="margin-right:0.05764em;">S</span><span class="mord mathit">t</span><span class="mord mathit" style="margin-right:0.02778em;">r</span><span class="mord mathit">i</span><span class="mord mathit">n</span><span class="mord mathit" style="margin-right:0.03588em;">g</span><span class="mord mathit" style="margin-right:0.13889em;">T</span><span class="mord mathrm">@</span><span class="mord mathit" style="margin-right:0.02778em;">D</span><span class="mord mathit" style="margin-right:0.22222em;">V</span><span class="mclose">?</span></span></span></span>StrTraitMFC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@00@Z)', verwiesen in Funktion '&quot;public: virtual int __thiscall test::InitInstance(void)&quot; (?InitInstance@test@@UAEHXZ)'</p>
</blockquote>
<p>Versuche ich nur auf DLL Funktionen zuzugreifen die bool oder int als Rückgabewert haben ist alles kein Problem und alles funktioniert einwandfrei...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1164240</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1164240</guid><dc:creator><![CDATA[&amp;lt;&amp;lt;samuel&amp;gt;&amp;gt;]]></dc:creator><pubDate>Mon, 30 Oct 2006 07:57:53 GMT</pubDate></item><item><title><![CDATA[Reply to handle aus dll exportieren on Mon, 30 Oct 2006 16:42:50 GMT]]></title><description><![CDATA[<p>Naja guck mal noch ob declaration und definition der funktion übereinstimmen ...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1164698</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1164698</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Mon, 30 Oct 2006 16:42:50 GMT</pubDate></item><item><title><![CDATA[Reply to handle aus dll exportieren on Mon, 30 Oct 2006 20:00:57 GMT]]></title><description><![CDATA[<p>dies passiert bei alle Funktionen die was mit CStrings zu tun haben... bei alle anderen nicht...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1164876</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1164876</guid><dc:creator><![CDATA[&amp;lt;&amp;lt;samuel&amp;gt;&amp;gt;]]></dc:creator><pubDate>Mon, 30 Oct 2006 20:00:57 GMT</pubDate></item></channel></rss>