<?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[Name mangling- DLL -]]></title><description><![CDATA[<p>Hi,</p>
<p>kann man denn mit MinGw das name mangling einer DLL<br />
umstellen. ALso der exportierten funktionen ??</p>
<p>Ich hatte gehofft das man ein def File angeben kann und es dem G++ mitgeben.</p>
<p>Gruß</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/322734/name-mangling-dll</link><generator>RSS for Node</generator><lastBuildDate>Thu, 16 Jul 2026 10:24:09 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/322734.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 04 Jan 2014 20:19:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Name mangling- DLL - on Sat, 04 Jan 2014 20:22:47 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>kann man denn mit MinGw das name mangling einer DLL<br />
umstellen. ALso der exportierten funktionen ??</p>
<p>Ich hatte gehofft das man ein def File angeben kann und es dem G++ mitgeben.</p>
<p>Gruß</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2375141</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2375141</guid><dc:creator><![CDATA[NasenBaer_2013]]></dc:creator><pubDate>Sat, 04 Jan 2014 20:22:47 GMT</pubDate></item><item><title><![CDATA[Reply to Name mangling- DLL - on Sat, 04 Jan 2014 20:48:50 GMT]]></title><description><![CDATA[<p>Okay, ich habe eine Lösung gefunden.</p>
<pre><code>EXTERN_C __declspec(dllexport) HRESULT __stdcall DllGetClassObject(REFCLSID rclsid, REFIID riid, void ** ppAny);
EXTERN_C __declspec(dllexport) HRESULT __stdcall DllCanUnloadNow(void);
EXTERN_C __declspec(dllexport) HRESULT __cdecl DllRegisterServer();
EXTERN_C __declspec(dllexport) HRESULT __cdecl DllUnregisterServer(void);
</code></pre>
<p>Die beiden funktionen<br />
DllRegisterServer und<br />
DllUnregisterServer<br />
haben __cdecl anstatt __stdcall...</p>
<p>Mann mann mann... das hat gedauert =)...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2375150</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2375150</guid><dc:creator><![CDATA[NasenBaer_2013]]></dc:creator><pubDate>Sat, 04 Jan 2014 20:48:50 GMT</pubDate></item><item><title><![CDATA[Reply to Name mangling- DLL - on Sun, 05 Jan 2014 03:27:48 GMT]]></title><description><![CDATA[<p>Laut MS haben die alle __stdcall.<br />
Wieso meinst du DllRegisterServer und DllUnregisterServer wären __cdecl?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2375167</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2375167</guid><dc:creator><![CDATA[hustbaer]]></dc:creator><pubDate>Sun, 05 Jan 2014 03:27:48 GMT</pubDate></item><item><title><![CDATA[Reply to Name mangling- DLL - on Sun, 05 Jan 2014 15:01:47 GMT]]></title><description><![CDATA[<p>Hi Hustbear,</p>
<p>regsrv32 meinedll.dll</p>
<p>findet die De/Registrierungsfunktion nur, wenn ich<br />
__cdecl<br />
nehme.</p>
<p>Ansonsten findes es den Einsprungspunkt nicht.</p>
<p>Das ist ein Windows7 64 Bit,<br />
Und die DLL ist mit MinGw gebaut.</p>
<p>Habe lange danach gesucht, weil, wie Du sagst, die Dokumentation was anderes behauptet.<br />
Aber fakt ist, das Registrieren der DLL geht nur mit __cdecl gut bei mir.</p>
<p>Gruß</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2375259</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2375259</guid><dc:creator><![CDATA[NasenBaer_2013]]></dc:creator><pubDate>Sun, 05 Jan 2014 15:01:47 GMT</pubDate></item><item><title><![CDATA[Reply to Name mangling- DLL - on Sun, 05 Jan 2014 23:26:09 GMT]]></title><description><![CDATA[<p>Also nö, die Funktionen müssen schon immer <code>__stdcall</code> sein. Nur dass die Namen nicht dekoriert sein dürfen.<br />
Und das kannst du erreichen indem du ein <code>.def</code> File statt <code>__declspec(dllexport)</code> verwendest.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2375398</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2375398</guid><dc:creator><![CDATA[hustbaer]]></dc:creator><pubDate>Sun, 05 Jan 2014 23:26:09 GMT</pubDate></item><item><title><![CDATA[Reply to Name mangling- DLL - on Thu, 16 Jan 2014 19:45:03 GMT]]></title><description><![CDATA[<p>Ja Du hast Recht.</p>
<p>Mit einem *.Def file kann man das Namemangling umstellen.<br />
Das Interface kann man mit<br />
DECLARE_INTERFACE_<br />
und<br />
STDMETHOD_(t,m)<br />
definieren.</p>
<p>So tut es ohne __cdecl</p>
<p>Gruß und Danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2377746</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2377746</guid><dc:creator><![CDATA[NasenBaer_2013]]></dc:creator><pubDate>Thu, 16 Jan 2014 19:45:03 GMT</pubDate></item><item><title><![CDATA[Reply to Name mangling- DLL - on Thu, 16 Jan 2014 20:01:51 GMT]]></title><description><![CDATA[<p>Kannst Du mir ev. eine gute Quelle sagen, was ich wo bei welchem servertyp in die Registry eintragen muss ??<br />
Bücher sind bestellt aber noch nicht hier und ich hab bock drauf das es läuft =)...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2377752</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2377752</guid><dc:creator><![CDATA[NasenBaer_2013]]></dc:creator><pubDate>Thu, 16 Jan 2014 20:01:51 GMT</pubDate></item><item><title><![CDATA[Reply to Name mangling- DLL - on Thu, 16 Jan 2014 22:17:20 GMT]]></title><description><![CDATA[<p>Uff.<br />
Nö, Sorry.<br />
Ich hab' da so-gut-wie immer auf Libraries/Frameworks zurückgegriffen die das für mich erledigen.</p>
<p>Irgendwo hab' ich Code rumfliegen der nen Out-Of-Process Server registriert, und zumindest ein Teil davon malt mit Hand in die Registry rein. Aber auch nicht alles. Und Erklärung ist da auch keine dabei.</p>
<p>Musste wohl die Suchmaschine anwerfen...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2377770</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2377770</guid><dc:creator><![CDATA[hustbaer]]></dc:creator><pubDate>Thu, 16 Jan 2014 22:17:20 GMT</pubDate></item></channel></rss>