<?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[mehrere Konstruktoren für ein Dialogfenster-&amp;gt;klappt nicht]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich arbeite zur Zeit mit dem MFC, und hab eine dialogbasierte Anwendung erstellt.Jetzt wollte ich letztens für mein Dialogfenster einen weiteren Konstruktor erstellen, jedoch haut das nicht hin, weil ich eine Fehlermeldung bekomme. Der Code vom Konstruktor sieht wie folgt aus:</p>
<p>*<strong>.h</strong></p>
<pre><code class="language-cpp">class CUserMatch : public CDialog
{
// Konstruktion
public:
	CUserMatch(CWnd* pParent = NULL);   // Standardkonstruktor
	CUserMatch(CWnd* pParent = NULL, ISaGsaRpConnection mRpConnection);
         //Konstruktor mit RpConnection
</code></pre>
<p>*<strong>.cpp</strong></p>
<pre><code class="language-cpp">CUserMatch::CUserMatch(CWnd* pParent, ISaGsaRpConnection mRpConnection)
	: CDialog(CUserMatch::IDD, pParent)
{
	//{{AFX_DATA_INIT(CUserMatch)
	m_MFilePath = _T(&quot;&quot;);
	//}}AFX_DATA_INIT
}
</code></pre>
<p>Diese Fehlermeldung erhalte ich dann:</p>
<blockquote>
<p>error C2548: 'CUserMatch::CUserMatch' : Fehlender Standardparameter fuer Parameter 2</p>
</blockquote>
<p>Weiss nicht, wieso er mir das anmeckert...weiss einer vielleicht Rat für mich...wäre sehr nett</p>
<p>Gruss,</p>
<p>chullain</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/79648/mehrere-konstruktoren-für-ein-dialogfenster-gt-klappt-nicht</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Apr 2026 02:03:44 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/79648.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 13 Jul 2004 12:26:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to mehrere Konstruktoren für ein Dialogfenster-&amp;gt;klappt nicht on Tue, 13 Jul 2004 12:26:36 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich arbeite zur Zeit mit dem MFC, und hab eine dialogbasierte Anwendung erstellt.Jetzt wollte ich letztens für mein Dialogfenster einen weiteren Konstruktor erstellen, jedoch haut das nicht hin, weil ich eine Fehlermeldung bekomme. Der Code vom Konstruktor sieht wie folgt aus:</p>
<p>*<strong>.h</strong></p>
<pre><code class="language-cpp">class CUserMatch : public CDialog
{
// Konstruktion
public:
	CUserMatch(CWnd* pParent = NULL);   // Standardkonstruktor
	CUserMatch(CWnd* pParent = NULL, ISaGsaRpConnection mRpConnection);
         //Konstruktor mit RpConnection
</code></pre>
<p>*<strong>.cpp</strong></p>
<pre><code class="language-cpp">CUserMatch::CUserMatch(CWnd* pParent, ISaGsaRpConnection mRpConnection)
	: CDialog(CUserMatch::IDD, pParent)
{
	//{{AFX_DATA_INIT(CUserMatch)
	m_MFilePath = _T(&quot;&quot;);
	//}}AFX_DATA_INIT
}
</code></pre>
<p>Diese Fehlermeldung erhalte ich dann:</p>
<blockquote>
<p>error C2548: 'CUserMatch::CUserMatch' : Fehlender Standardparameter fuer Parameter 2</p>
</blockquote>
<p>Weiss nicht, wieso er mir das anmeckert...weiss einer vielleicht Rat für mich...wäre sehr nett</p>
<p>Gruss,</p>
<p>chullain</p>
]]></description><link>https://www.c-plusplus.net/forum/post/559587</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/559587</guid><dc:creator><![CDATA[chullain]]></dc:creator><pubDate>Tue, 13 Jul 2004 12:26:36 GMT</pubDate></item><item><title><![CDATA[Reply to mehrere Konstruktoren für ein Dialogfenster-&amp;gt;klappt nicht on Tue, 13 Jul 2004 12:42:19 GMT]]></title><description><![CDATA[<p>PS: die Fehlermeldung erscheint an der Stelle in der Header - Datei beim zweiten Konstruktor...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/559617</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/559617</guid><dc:creator><![CDATA[chullain]]></dc:creator><pubDate>Tue, 13 Jul 2004 12:42:19 GMT</pubDate></item><item><title><![CDATA[Reply to mehrere Konstruktoren für ein Dialogfenster-&amp;gt;klappt nicht on Tue, 13 Jul 2004 12:58:27 GMT]]></title><description><![CDATA[<p>Er ist anscheinend nur traurig, weil der letzte Parameter keinen Standardwert hat. Entweder du tauscht die beiden Parameter um oder du spendierst noch einen Standardwert.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/559645</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/559645</guid><dc:creator><![CDATA[isabeau]]></dc:creator><pubDate>Tue, 13 Jul 2004 12:58:27 GMT</pubDate></item><item><title><![CDATA[Reply to mehrere Konstruktoren für ein Dialogfenster-&amp;gt;klappt nicht on Tue, 13 Jul 2004 13:03:53 GMT]]></title><description><![CDATA[<p>supi, danke... <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/559653</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/559653</guid><dc:creator><![CDATA[chullain]]></dc:creator><pubDate>Tue, 13 Jul 2004 13:03:53 GMT</pubDate></item><item><title><![CDATA[Reply to mehrere Konstruktoren für ein Dialogfenster-&amp;gt;klappt nicht on Tue, 13 Jul 2004 13:31:35 GMT]]></title><description><![CDATA[<p>Grundlage: Nach einem Parameter mit Standardwert dürfen nur noch welche mit Standardwert folgen. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/559674</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/559674</guid><dc:creator><![CDATA[estartu]]></dc:creator><pubDate>Tue, 13 Jul 2004 13:31:35 GMT</pubDate></item></channel></rss>