<?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[DoDataExchange (Hinzufügen von Variablen nicht mehr möglich)*** wichitg***]]></title><description><![CDATA[<p>Hi @all,</p>
<p>ich habe folgendes Problem.<br />
Wenn ich meinem Dialogfeld eine neue Komponente hinzufüge und darauf eine Membervariable setze, schmiert das Programm sofort ab. Beim Anlegen der Variable ist mir aufgefallen, daß</p>
<pre><code class="language-cpp">void CHauptDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CHauptDlg)
...
DDX_CBString(pDX, IDC_CBSTREAMER, m_strCBStreamer);
DDX_Control(pDX, IDC_MEDIAPLAYER1, m_cMediaPlayer);
DDX_Text(pDX, IDC_CHATMSG, m_strChatmsg);
//}}AFX_DATA_MAP
DDX_Text(pDX, IDC_PASSWORT, m_strPasswort);  // neue Variable
}
</code></pre>
<p>die neue Variable immer auserhalb von AFX_DATA_MAP liegt.<br />
In der Headerdatei ist sie auch nicht in AFX_DATA sondern im &quot;normalen public&quot;.<br />
Kann AFX_DATA_MAP nur eine bestimmte Anzahl an komponenten aufnehmen?<br />
Und wenn ja, was muß ich machen, damit es weiterhin funktioniert.</p>
<p>Ach ja, die Fehlermedung beim Start lautet:<br />
Unbehandelte Ausnahme bei 0x00000000 in Haupt.exe: 0xC0000005: Zugriffsverletzung-Leseposition 0x00000000.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/66990/dodataexchange-hinzufügen-von-variablen-nicht-mehr-möglich-wichitg</link><generator>RSS for Node</generator><lastBuildDate>Sat, 06 Jun 2026 15:08:11 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/66990.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 04 Mar 2004 13:01:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to DoDataExchange (Hinzufügen von Variablen nicht mehr möglich)*** wichitg*** on Mon, 15 Mar 2004 10:26:25 GMT]]></title><description><![CDATA[<p>Hi @all,</p>
<p>ich habe folgendes Problem.<br />
Wenn ich meinem Dialogfeld eine neue Komponente hinzufüge und darauf eine Membervariable setze, schmiert das Programm sofort ab. Beim Anlegen der Variable ist mir aufgefallen, daß</p>
<pre><code class="language-cpp">void CHauptDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CHauptDlg)
...
DDX_CBString(pDX, IDC_CBSTREAMER, m_strCBStreamer);
DDX_Control(pDX, IDC_MEDIAPLAYER1, m_cMediaPlayer);
DDX_Text(pDX, IDC_CHATMSG, m_strChatmsg);
//}}AFX_DATA_MAP
DDX_Text(pDX, IDC_PASSWORT, m_strPasswort);  // neue Variable
}
</code></pre>
<p>die neue Variable immer auserhalb von AFX_DATA_MAP liegt.<br />
In der Headerdatei ist sie auch nicht in AFX_DATA sondern im &quot;normalen public&quot;.<br />
Kann AFX_DATA_MAP nur eine bestimmte Anzahl an komponenten aufnehmen?<br />
Und wenn ja, was muß ich machen, damit es weiterhin funktioniert.</p>
<p>Ach ja, die Fehlermedung beim Start lautet:<br />
Unbehandelte Ausnahme bei 0x00000000 in Haupt.exe: 0xC0000005: Zugriffsverletzung-Leseposition 0x00000000.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/473030</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/473030</guid><dc:creator><![CDATA[Trikor]]></dc:creator><pubDate>Mon, 15 Mar 2004 10:26:25 GMT</pubDate></item><item><title><![CDATA[Reply to DoDataExchange (Hinzufügen von Variablen nicht mehr möglich)*** wichitg*** on Thu, 04 Mar 2004 13:24:28 GMT]]></title><description><![CDATA[<p>Es scheint daran zu liegen, das die Map voll ist. Aber wie implementiere ich eine neue? Hab´s so versucht<br />
DoDataExchange</p>
<pre><code class="language-cpp">//{{AFX_DATA2_MAP(CHauptDlg)
DDX_Control(pDX, IDC_CHEINGANG2, m_Test);
//}}AFX_DATA2_MAP
</code></pre>
<p>Header</p>
<pre><code class="language-cpp">//{{AFX_DATA2(CHauptDlg)
CButton m_Test;
//}}AFX_DATA2
</code></pre>
<p>Klappt aber nicht. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/473066</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/473066</guid><dc:creator><![CDATA[Trikor]]></dc:creator><pubDate>Thu, 04 Mar 2004 13:24:28 GMT</pubDate></item><item><title><![CDATA[Reply to DoDataExchange (Hinzufügen von Variablen nicht mehr möglich)*** wichitg*** on Mon, 15 Mar 2004 10:26:02 GMT]]></title><description><![CDATA[<p>*** mach aktuell ***</p>
<p>Ist wirklich wichtig! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/26a0.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--warning"
      title=":warning:"
      alt="⚠"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/27a1.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--right_arrow"
      title=":arrow_right:"
      alt="➡"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/26a0.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--warning"
      title=":warning:"
      alt="⚠"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/480637</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/480637</guid><dc:creator><![CDATA[Trikor]]></dc:creator><pubDate>Mon, 15 Mar 2004 10:26:02 GMT</pubDate></item><item><title><![CDATA[Reply to DoDataExchange (Hinzufügen von Variablen nicht mehr möglich)*** wichitg*** on Mon, 15 Mar 2004 11:59:34 GMT]]></title><description><![CDATA[<p>Schon mal &quot;Erstellen -&gt; Bereinigen&quot; und &quot;Erstellen -&gt; Alles neu erstellen&quot; gemacht ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/480735</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/480735</guid><dc:creator><![CDATA[isabeau]]></dc:creator><pubDate>Mon, 15 Mar 2004 11:59:34 GMT</pubDate></item><item><title><![CDATA[Reply to DoDataExchange (Hinzufügen von Variablen nicht mehr möglich)*** wichitg*** on Mon, 15 Mar 2004 12:24:16 GMT]]></title><description><![CDATA[<p>aber natürlich habe ich schon alles bereinigt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/480764</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/480764</guid><dc:creator><![CDATA[Trikor]]></dc:creator><pubDate>Mon, 15 Mar 2004 12:24:16 GMT</pubDate></item></channel></rss>