<?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[vererbung aus dll heraus]]></title><description><![CDATA[<p>hallo zusammen,</p>
<p>muss man etwas bestimmtes beachten, wenn bei einer vererbung die baseClass in einer dll liegt, die erbende klasse aber außerhalb? ich habe die baseClass normal mit __declspec(dllexport) sichtbar gemacht, bekomme jetzt aber 0xC0000005: Zugriffsverletzung.</p>
<p>oder geht das vielleicht gar nicht?<br />
danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/275271/vererbung-aus-dll-heraus</link><generator>RSS for Node</generator><lastBuildDate>Sat, 04 Apr 2026 15:43:44 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/275271.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 12 Oct 2010 11:09:13 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to vererbung aus dll heraus on Tue, 12 Oct 2010 11:09:13 GMT]]></title><description><![CDATA[<p>hallo zusammen,</p>
<p>muss man etwas bestimmtes beachten, wenn bei einer vererbung die baseClass in einer dll liegt, die erbende klasse aber außerhalb? ich habe die baseClass normal mit __declspec(dllexport) sichtbar gemacht, bekomme jetzt aber 0xC0000005: Zugriffsverletzung.</p>
<p>oder geht das vielleicht gar nicht?<br />
danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1964324</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1964324</guid><dc:creator><![CDATA[mael15]]></dc:creator><pubDate>Tue, 12 Oct 2010 11:09:13 GMT</pubDate></item><item><title><![CDATA[Reply to vererbung aus dll heraus on Tue, 12 Oct 2010 11:26:54 GMT]]></title><description><![CDATA[<p>Die DLL und der konsumierende Code muss mit exact demselben Compiler kompiliert und gelinkt sein. Ausserdem Debug zu Debug, Release zu Release, etc.</p>
<p>Simon</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1964345</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1964345</guid><dc:creator><![CDATA[theta]]></dc:creator><pubDate>Tue, 12 Oct 2010 11:26:54 GMT</pubDate></item><item><title><![CDATA[Reply to vererbung aus dll heraus on Tue, 12 Oct 2010 11:31:06 GMT]]></title><description><![CDATA[<p>hi simon,</p>
<p>danke für den tip! ich schreibe sowohl dll als auch app selber und kompiliere, das dürfte also nicht das problem sein.<br />
hast du noch eine andere idee?</p>
<p>danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1964348</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1964348</guid><dc:creator><![CDATA[mael15]]></dc:creator><pubDate>Tue, 12 Oct 2010 11:31:06 GMT</pubDate></item><item><title><![CDATA[Reply to vererbung aus dll heraus on Tue, 12 Oct 2010 11:34:13 GMT]]></title><description><![CDATA[<p>Zeig mal ein bisschen Code. Wäre von Vorteil. Du bekommst ja eine AccVio das hat dann nix mehr mit dem kompilieren oder linken zu tun.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1964352</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1964352</guid><dc:creator><![CDATA[CodeSnippet?]]></dc:creator><pubDate>Tue, 12 Oct 2010 11:34:13 GMT</pubDate></item><item><title><![CDATA[Reply to vererbung aus dll heraus on Tue, 12 Oct 2010 15:09:04 GMT]]></title><description><![CDATA[<p>ok, ich bin beim erstellen eines minimalen beispiels schon ein stück weiter gekommen,das problem kann ich mir aber nicht erklären. eventuell muss dieser post in das wxWidgets forum verschoben werden.</p>
<p>in der app habe ich folgendes:</p>
<pre><code class="language-cpp">#include &quot;basedll.h&quot;
class testClass : public libconfig::testBase {
public:
    testClass(wxWindow *parent) : libconfig::testBase(parent){};
};
</code></pre>
<p>basedll.h:</p>
<pre><code class="language-cpp">namespace libconfig {

class __declspec(dllexport) testBase : public wxPanel {
public:
    testBase( wxWindow* par ){};
};

}
</code></pre>
<p>wenn ich den ctor aus basedll.h in basedll.cpp (inkl. using namespace libconfig; )auslagere, dann kommt folgender fehler, sonst nicht:</p>
<pre><code>&gt;    libConfig.dll!wxWinHashTable::Get(long key=1378044)  Zeile 596 + 0x17 Bytes    C++
     libConfig.dll!wxFindWinFromHandle(void * hWnd=0x001506fc)  Zeile 3434    C++
     libConfig.dll!wxAssociateWinWithHandle(HWND__ * hWnd=0x001506fc, wxWindow * win=0x027fb468)  Zeile 3443 + 0x9 Bytes    C++
     libConfig.dll!wxWindow::SubclassWin(void * hWnd=0x001506fc)  Zeile 1146 + 0xd Bytes    C++
     libConfig.dll!wxWindow::MSWCreate(const wchar_t * wclass=0x103b5060, const wchar_t * title=0x00000000, const wxPoint &amp; pos={...}, const wxSize &amp; size={...}, unsigned long style=1375731712, unsigned long extendedStyle=65536)  Zeile 3616    C++
     libConfig.dll!wxWindow::Create(wxWindow * parent=0x027fae00, int id=-1, const wxPoint &amp; pos={...}, const wxSize &amp; size={...}, long style=2621440, const wxString &amp; name={...})  Zeile 612 + 0x21 Bytes    C++
     libConfig.dll!wxPanel::Create(wxWindow * parent=0x027fae00, int id=-1, const wxPoint &amp; pos={...}, const wxSize &amp; size={...}, long style=2621440, const wxString &amp; name={...})  Zeile 117 + 0x20 Bytes    C++
     libConfig.dll!wxPanel::wxPanel(wxWindow * parent=0x027fae00, int winid=-1, const wxPoint &amp; pos={...}, const wxSize &amp; size={...}, long style=2621440, const wxString &amp; name={...})  Zeile 58    C++
     libConfig.dll!libconfig::testBase::testBase(wxWindow * par=0x027fae00)  Zeile 281 + 0x7d Bytes    C++
     myapp.exe!testClass::testClass(wxWindow * parent=0x027fae00)  Zeile 41 + 0x13 Bytes    C++
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1964508</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1964508</guid><dc:creator><![CDATA[mael15]]></dc:creator><pubDate>Tue, 12 Oct 2010 15:09:04 GMT</pubDate></item><item><title><![CDATA[Reply to vererbung aus dll heraus on Wed, 13 Oct 2010 06:18:04 GMT]]></title><description><![CDATA[<p>ich habe die frage ins wxWidgets forum verschoben, kann hier gelöscht werden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1964761</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1964761</guid><dc:creator><![CDATA[mael15]]></dc:creator><pubDate>Wed, 13 Oct 2010 06:18:04 GMT</pubDate></item></channel></rss>