<?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+Klasse]]></title><description><![CDATA[<p>Wie um alles in der Welt kann ich in einer MFC Anwendung eine ganz normale Klasse erstellen die nichts mit irgendeiner Basisklasse zu tun hat?</p>
<p>also ich hab eine Headerdatei erstellt und sie AccountHandler.h genannt(einfach über Datei/Neu) und meine Klasse reingeschrieben.<br />
aber wenn ich die Headerdatei jetzt in meine Dialog.cpp Datei includieren will kommen ganz abstruse Fehler.</p>
<p>GTCDlg.cpp(14) : error C2628: 'Accounthandler' followed by 'char' is illegal (did you forget a ';'?)<br />
GTCDlg.cpp(14) : error C2440: 'initializing' : cannot convert from 'char [71]' to 'class AccountHandler[]'<br />
There is no context in which this conversion is possible<br />
GTCDlg.cpp(103) : error C2664: 'AfxAssertFailedLine' : cannot convert parameter 1 from 'class AccountHandler []' to 'const char *'<br />
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast<br />
GTCDlg.cpp(104) : error C2664: 'AfxAssertFailedLine' : cannot convert parameter 1 from 'class AccountHandler []' to 'const char *'<br />
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast</p>
<p>hilfeeeeee^^</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/80733/mfc-klasse</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Apr 2026 23:24:31 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/80733.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 24 Jul 2004 01:29:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to MFC+Klasse on Sat, 24 Jul 2004 01:29:54 GMT]]></title><description><![CDATA[<p>Wie um alles in der Welt kann ich in einer MFC Anwendung eine ganz normale Klasse erstellen die nichts mit irgendeiner Basisklasse zu tun hat?</p>
<p>also ich hab eine Headerdatei erstellt und sie AccountHandler.h genannt(einfach über Datei/Neu) und meine Klasse reingeschrieben.<br />
aber wenn ich die Headerdatei jetzt in meine Dialog.cpp Datei includieren will kommen ganz abstruse Fehler.</p>
<p>GTCDlg.cpp(14) : error C2628: 'Accounthandler' followed by 'char' is illegal (did you forget a ';'?)<br />
GTCDlg.cpp(14) : error C2440: 'initializing' : cannot convert from 'char [71]' to 'class AccountHandler[]'<br />
There is no context in which this conversion is possible<br />
GTCDlg.cpp(103) : error C2664: 'AfxAssertFailedLine' : cannot convert parameter 1 from 'class AccountHandler []' to 'const char *'<br />
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast<br />
GTCDlg.cpp(104) : error C2664: 'AfxAssertFailedLine' : cannot convert parameter 1 from 'class AccountHandler []' to 'const char *'<br />
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast</p>
<p>hilfeeeeee^^</p>
]]></description><link>https://www.c-plusplus.net/forum/post/567225</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/567225</guid><dc:creator><![CDATA[anfänger2004]]></dc:creator><pubDate>Sat, 24 Jul 2004 01:29:54 GMT</pubDate></item><item><title><![CDATA[Reply to MFC+Klasse on Sat, 24 Jul 2004 01:37:19 GMT]]></title><description><![CDATA[<p>die ersten beiden Fehlermeldungen beziehen sich auf:</p>
<p>#ifdef <em>DEBUG<br />
#define new DEBUG_NEW<br />
#undef THIS_FILE<br />
-------&gt;static char THIS_FILE[] = __FILE</em>_;<br />
#endif</p>
<p>die dritte auf:<br />
ASSERT((IDM_ABOUTBOX &amp; 0xFFF0) == IDM_ABOUTBOX);<br />
und die 4. auf:<br />
ASSERT(IDM_ABOUTBOX &lt; 0xF000);</p>
]]></description><link>https://www.c-plusplus.net/forum/post/567226</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/567226</guid><dc:creator><![CDATA[anfänger2004]]></dc:creator><pubDate>Sat, 24 Jul 2004 01:37:19 GMT</pubDate></item><item><title><![CDATA[Reply to MFC+Klasse on Sat, 24 Jul 2004 08:40:53 GMT]]></title><description><![CDATA[<p>Dies sind nicht die fehlerhaften Zeilen. Zeig mal einen größeren Ausschnitt der Datei.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/567256</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/567256</guid><dc:creator><![CDATA[Walli]]></dc:creator><pubDate>Sat, 24 Jul 2004 08:40:53 GMT</pubDate></item><item><title><![CDATA[Reply to MFC+Klasse on Sat, 24 Jul 2004 10:58:50 GMT]]></title><description><![CDATA[<p>das is eigentlich nicht nötig weil ich nix an der Datei verändert hab ausser OnButton1 , da wird eine Funktion aus der angesprochenen Klasse aufgerufen.</p>
<p>Und wenn ich #include &quot;AccountHandler.h&quot; entferne verschwinden alle 4 Fehlermeldungen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/567317</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/567317</guid><dc:creator><![CDATA[anfänger2004]]></dc:creator><pubDate>Sat, 24 Jul 2004 10:58:50 GMT</pubDate></item><item><title><![CDATA[Reply to MFC+Klasse on Sat, 24 Jul 2004 15:56:35 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>das sieht nach einem Fehler in der AccountHandler.h aus, ohne Code daraus kann man nur raten (fehlerhafte Klassen-Definition...)</p>
<p>MfG</p>
]]></description><link>https://www.c-plusplus.net/forum/post/567462</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/567462</guid><dc:creator><![CDATA[Probe-Nutzer]]></dc:creator><pubDate>Sat, 24 Jul 2004 15:56:35 GMT</pubDate></item></channel></rss>