<?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[Dialogbasierende Anwendung]]></title><description><![CDATA[<p>Hi habe eine Dlgbasierende Anwendung in der rufe ich mit DoModal() ein 2 Dialogfenster auf meine Frage jetzt wie kann ich in den 2 Fenster auf Variabeln bzw. Funktion des ersten Fensters zugreifen?</p>
<p>MfG Hoffi</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/52925/dialogbasierende-anwendung</link><generator>RSS for Node</generator><lastBuildDate>Mon, 01 Jun 2026 05:06:53 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/52925.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 24 Oct 2003 09:16:03 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Dialogbasierende Anwendung on Fri, 24 Oct 2003 09:16:03 GMT]]></title><description><![CDATA[<p>Hi habe eine Dlgbasierende Anwendung in der rufe ich mit DoModal() ein 2 Dialogfenster auf meine Frage jetzt wie kann ich in den 2 Fenster auf Variabeln bzw. Funktion des ersten Fensters zugreifen?</p>
<p>MfG Hoffi</p>
]]></description><link>https://www.c-plusplus.net/forum/post/378630</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/378630</guid><dc:creator><![CDATA[Nahasapeemapetilon]]></dc:creator><pubDate>Fri, 24 Oct 2003 09:16:03 GMT</pubDate></item><item><title><![CDATA[Reply to Dialogbasierende Anwendung on Fri, 24 Oct 2003 09:31:09 GMT]]></title><description><![CDATA[<p>du übergibst die variablen an das 2 fenster<br />
so ähnlich wie mit dem öffnen des zweiten fensters</p>
]]></description><link>https://www.c-plusplus.net/forum/post/378648</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/378648</guid><dc:creator><![CDATA[google]]></dc:creator><pubDate>Fri, 24 Oct 2003 09:31:09 GMT</pubDate></item><item><title><![CDATA[Reply to Dialogbasierende Anwendung on Fri, 24 Oct 2003 09:48:19 GMT]]></title><description><![CDATA[<p>Kann man nicht irgendwie mit ein Pionter auf das erste Fenster drauf zugreifen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/378669</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/378669</guid><dc:creator><![CDATA[Nahasapeemapetilon]]></dc:creator><pubDate>Fri, 24 Oct 2003 09:48:19 GMT</pubDate></item><item><title><![CDATA[Reply to Dialogbasierende Anwendung on Fri, 24 Oct 2003 09:50:08 GMT]]></title><description><![CDATA[<p>Schreib Dir in der 1. Klasse Get-Methoden in den Du Deine Variable zurückgibst. Die Get-Methoden rufst Du dann in der 2. Klasse auf.</p>
<pre><code class="language-cpp">CDialog1 dlg1;
CString VariableDlg2 = dlg1.GetVariableDlg1();
</code></pre>
<p>In die Getfunktion schreibst Du</p>
<pre><code class="language-cpp">return VariableDlg1;
</code></pre>
<p>Hoffe es hilft Dir.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/378672</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/378672</guid><dc:creator><![CDATA[Noodles]]></dc:creator><pubDate>Fri, 24 Oct 2003 09:50:08 GMT</pubDate></item><item><title><![CDATA[Reply to Dialogbasierende Anwendung on Fri, 24 Oct 2003 12:30:23 GMT]]></title><description><![CDATA[<p>Wenn ich das so mache erzeuge ich doch nur eine neue Instanz meiner Dialogklasse in der dann nicht die aktuellen Werte des ersten Dialogfeldes stehen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/378830</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/378830</guid><dc:creator><![CDATA[Nahasapeemapetilon]]></dc:creator><pubDate>Fri, 24 Oct 2003 12:30:23 GMT</pubDate></item><item><title><![CDATA[Reply to Dialogbasierende Anwendung on Sat, 25 Oct 2003 16:46:55 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">class CDialog1
{
public:
    CDialog* GetDialogPointer() { return this; }
    void Test()
    {
        AfxMessageBox(&quot;bla&quot;);
    }
};

// blablabla

class CDialog2
{
public:

    CDialog2(CDialog* pDialog1)//hier fehlen natürlich noch andere parameter und der basisklassenkonstruktor
    {
        m_pDialog1=pDialog1;
        m_pDialog1-&gt;Test();
    }
protected:
    CDialog1 *m_pDialog1;
};

// blabla....

//irgendwo im code.....
CDialog1 dlg1;
CDialog2 dlg2(&amp;dlg);
</code></pre>
<p>.......... könnte sowas funzen ????</p>
]]></description><link>https://www.c-plusplus.net/forum/post/379521</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/379521</guid><dc:creator><![CDATA[coder oder ?]]></dc:creator><pubDate>Sat, 25 Oct 2003 16:46:55 GMT</pubDate></item><item><title><![CDATA[Reply to Dialogbasierende Anwendung on Sat, 25 Oct 2003 16:54:17 GMT]]></title><description><![CDATA[<pre><code>class CDialog1
{
public:
    void SetPointer(CDialog2* pDialog) { m_pDialog2=pDialog2; }
    void Test() { AfxMessageBox(&quot;Dialog2&quot;); }
private:
    CDialog2 *m_pDialog2;
};

class CDialog2
{
public:
    void SetPointer(CDialog1* pDialog) { m_pDialog1=pDialog; }
    void Test() { AfxMessageBox(&quot;Dialog2&quot;); }
private:
    CDialog1 *m_pDialog1;
};

BOOL CMyApp::InitInstance()
{
    CDialog1 dlg1;
    CDialog2 dlg2;
    dlg1.SetPointer(&amp;dlg2);
    dlg2.SetPointer(&amp;dlg1);

    dlg1.DoModal(); 
    dlg2.DoModal();

    return TRUE;
}
</code></pre>
<p>das könnte auch funktionieren !<br />
Du musst dir halt noch methoden zum übergeben deiner Variablen schreiben !</p>
]]></description><link>https://www.c-plusplus.net/forum/post/379526</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/379526</guid><dc:creator><![CDATA[::--::]]></dc:creator><pubDate>Sat, 25 Oct 2003 16:54:17 GMT</pubDate></item></channel></rss>