<?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[Daten mit Dialog öffnen mit geben]]></title><description><![CDATA[<p>Hallo Leute,</p>
<p>habe da mal wieder ein Problem.</p>
<p>Ich möchte ein Dialog öffnen und dabei ihm eine Zahl mit geben, so dass er in der OnInitDialog diese Zahl hat und damit ein Datenbankeintrag gesucht werden kann.</p>
<p>Hier öffne ich es:</p>
<pre><code class="language-cpp">void CMainFrame::OnAuswahl() 
{

UpdateData(FALSE);
int m_iServerID = 2;

CAuswahlDialog* m_pAuswahlDialog = new CAuswahlDialog(m_iServerID);

m_pAuswahlDialog-&gt;DoModal();	
}
</code></pre>
<p>In der AuswahlDialog:</p>
<pre><code class="language-cpp">CAuswahlDialog::CAuswahlDialog(int u_iServerID)
{
m_iServerID = u_iServerID;
}
</code></pre>
<p>Jetzt bringt er mir beim öffnen einen Runtime Fehler.</p>
<p>Habs auch schon mit set methoden probiert, aber immer ähnlicher Fehler....</p>
<p>Was mache ich falsch ??</p>
<p>Gruß und Danke<br />
andy_mann</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/74178/daten-mit-dialog-öffnen-mit-geben</link><generator>RSS for Node</generator><lastBuildDate>Sun, 26 Apr 2026 15:40:13 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/74178.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 18 May 2004 06:24:19 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Daten mit Dialog öffnen mit geben on Tue, 18 May 2004 06:24:19 GMT]]></title><description><![CDATA[<p>Hallo Leute,</p>
<p>habe da mal wieder ein Problem.</p>
<p>Ich möchte ein Dialog öffnen und dabei ihm eine Zahl mit geben, so dass er in der OnInitDialog diese Zahl hat und damit ein Datenbankeintrag gesucht werden kann.</p>
<p>Hier öffne ich es:</p>
<pre><code class="language-cpp">void CMainFrame::OnAuswahl() 
{

UpdateData(FALSE);
int m_iServerID = 2;

CAuswahlDialog* m_pAuswahlDialog = new CAuswahlDialog(m_iServerID);

m_pAuswahlDialog-&gt;DoModal();	
}
</code></pre>
<p>In der AuswahlDialog:</p>
<pre><code class="language-cpp">CAuswahlDialog::CAuswahlDialog(int u_iServerID)
{
m_iServerID = u_iServerID;
}
</code></pre>
<p>Jetzt bringt er mir beim öffnen einen Runtime Fehler.</p>
<p>Habs auch schon mit set methoden probiert, aber immer ähnlicher Fehler....</p>
<p>Was mache ich falsch ??</p>
<p>Gruß und Danke<br />
andy_mann</p>
]]></description><link>https://www.c-plusplus.net/forum/post/522422</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/522422</guid><dc:creator><![CDATA[andy_mann]]></dc:creator><pubDate>Tue, 18 May 2004 06:24:19 GMT</pubDate></item><item><title><![CDATA[Reply to Daten mit Dialog öffnen mit geben on Wed, 19 May 2004 10:43:11 GMT]]></title><description><![CDATA[<p>MMhh..</p>
<p>kann mir jemand sagen, wie ich ein modales Dialog öffne ??</p>
<pre><code class="language-cpp">void CMainFrame::OnAuswahlOeffnen() 
{

CAuswahlDialog* m_pAuswahlDialog = new CAuswahlDialog(2);

m_pAuswahlDialog-&gt;Create(IDD_AUSWAHL, this);

m_pAuswahlDialog-&gt;ShowWindow(SW_SHOW);

}
</code></pre>
<p>so tut es zwar, ich möchte aber kein nichtmodales Dialog haben.....</p>
<p>mit</p>
<pre><code class="language-cpp">m_pAuswahlDialog-&gt;DoModal();
</code></pre>
<p>tut es nicht....</p>
<p>Gruß<br />
andy_mann</p>
]]></description><link>https://www.c-plusplus.net/forum/post/523324</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/523324</guid><dc:creator><![CDATA[andy_mann]]></dc:creator><pubDate>Wed, 19 May 2004 10:43:11 GMT</pubDate></item><item><title><![CDATA[Reply to Daten mit Dialog öffnen mit geben on Wed, 19 May 2004 10:55:17 GMT]]></title><description><![CDATA[<p>der konstruktor muss den basisklassenkonstruktor aufrufen !!!!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/523330</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/523330</guid><dc:creator><![CDATA[Ernsti_]]></dc:creator><pubDate>Wed, 19 May 2004 10:55:17 GMT</pubDate></item><item><title><![CDATA[Reply to Daten mit Dialog öffnen mit geben on Wed, 19 May 2004 11:06:18 GMT]]></title><description><![CDATA[<p>Ich danke DIr,</p>
<p>aber wie genau ??</p>
<pre><code class="language-cpp">CAuswahlDialog::CAuswahlDialog(CWnd* pParent /*=NULL*/)
	: CDialog(CAuswahlDialog::IDD, pParent)
{
	//{{AFX_DATA_INIT(CAuswahlDialog)
	//}}AFX_DATA_INIT
	m_iServerID = 0;

	DoModal();
}

CAuswahlDialog::CAuswahlDialog(int u_iServerID)
{
	m_iServerID = u_iServerID;

}
</code></pre>
<p>so tuts nicht....</p>
<p>Gruß<br />
andy_mann</p>
]]></description><link>https://www.c-plusplus.net/forum/post/523343</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/523343</guid><dc:creator><![CDATA[andy_mann]]></dc:creator><pubDate>Wed, 19 May 2004 11:06:18 GMT</pubDate></item><item><title><![CDATA[Reply to Daten mit Dialog öffnen mit geben on Wed, 19 May 2004 11:21:06 GMT]]></title><description><![CDATA[<p>versuch mal dieses:</p>
<pre><code class="language-cpp">CAuswahlDialog::CAuswahlDialog(int u_iServerID) : : CDialog(CAuswahlDialog::IDD, NULL)
{
//dein code
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/523358</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/523358</guid><dc:creator><![CDATA[Ernsti_]]></dc:creator><pubDate>Wed, 19 May 2004 11:21:06 GMT</pubDate></item><item><title><![CDATA[Reply to Daten mit Dialog öffnen mit geben on Wed, 19 May 2004 11:33:28 GMT]]></title><description><![CDATA[<p>oh,</p>
<p>vielen Dank, es tut...</p>
<p>Gruß<br />
andy_mann</p>
]]></description><link>https://www.c-plusplus.net/forum/post/523364</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/523364</guid><dc:creator><![CDATA[andy_mann]]></dc:creator><pubDate>Wed, 19 May 2004 11:33:28 GMT</pubDate></item></channel></rss>