<?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[Problem mit Eingabefeld]]></title><description><![CDATA[<p>Hallo, ich hab ein kleines Problem mit einem Eingabefeld.<br />
Ich hab eine Funktion der ich einen CString-Parameter übergebe und welche diesen dann in das Eingabefeld setzen sollte.</p>
<pre><code class="language-cpp">void CEditF::Set(CString s)
{
    m_edit.Format(&quot;%s&quot;,s);
    UpdateData(FALSE);
}
</code></pre>
<p>Der Mist stürzt jedoch immer (Debug Assertion Failed) in der Funktion ab und der Debugger zeigt auf diese Zeile:<br />
// CString<br />
_AFX_INLINE CStringData* CString::GetData() const<br />
{ ASSERT(m_pchData != NULL); return ((CStringData*)m_pchData)-1; }</p>
<p>Kann mir jemand helfen? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f62e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_open_mouth"
      title=":open_mouth:"
      alt="😮"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/topic/52135/problem-mit-eingabefeld</link><generator>RSS for Node</generator><lastBuildDate>Sun, 31 May 2026 18:51:51 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/52135.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 16 Oct 2003 16:24:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem mit Eingabefeld on Thu, 16 Oct 2003 16:24:09 GMT]]></title><description><![CDATA[<p>Hallo, ich hab ein kleines Problem mit einem Eingabefeld.<br />
Ich hab eine Funktion der ich einen CString-Parameter übergebe und welche diesen dann in das Eingabefeld setzen sollte.</p>
<pre><code class="language-cpp">void CEditF::Set(CString s)
{
    m_edit.Format(&quot;%s&quot;,s);
    UpdateData(FALSE);
}
</code></pre>
<p>Der Mist stürzt jedoch immer (Debug Assertion Failed) in der Funktion ab und der Debugger zeigt auf diese Zeile:<br />
// CString<br />
_AFX_INLINE CStringData* CString::GetData() const<br />
{ ASSERT(m_pchData != NULL); return ((CStringData*)m_pchData)-1; }</p>
<p>Kann mir jemand helfen? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f62e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_open_mouth"
      title=":open_mouth:"
      alt="😮"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/373880</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/373880</guid><dc:creator><![CDATA[pyx]]></dc:creator><pubDate>Thu, 16 Oct 2003 16:24:09 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Eingabefeld on Thu, 16 Oct 2003 18:26:50 GMT]]></title><description><![CDATA[<p>wenn du der formatfunktion &quot;%s&quot; übergibst, erwartet sie einen char* als<br />
parameter.</p>
<p>richtig wäre also:</p>
<pre><code>m_edit.Format(&quot;%s&quot;,(LPCTSTR)s);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/373942</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/373942</guid><dc:creator><![CDATA[Wonko]]></dc:creator><pubDate>Thu, 16 Oct 2003 18:26:50 GMT</pubDate></item></channel></rss>