<?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[Zeilen aus einem RichEditControl auslesen]]></title><description><![CDATA[<p>Ich bekomme eine Ausnahmeverletzung wenn ich die zeilen einse RichEditCtrl auslesen will. Das liegt wohl an der zeilen:</p>
<p>pmyRichEditCtrl.GetLine(i, strText.GetBuffer(nLineLength));<br />
strText.ReleaseBuffer(nLineLength);</p>
<p>Das krasse an der ganzen sache ist das der code unten ein beispiel aus der msdn ist. Kann mir da jemand weiterhelfen?</p>
<pre><code class="language-cpp">CRichEditCtrl&amp; pmyRichEditCtrl = this-&gt;GetRichEditCtrl();

   int i, nLineLength, nLineCount = pmyRichEditCtrl.GetLineCount();
   CString strText, strLine;

   // Dump every line of text of the rich edit control.
   for (i=0;i &lt; nLineCount;i++)
   {
      nLineLength = pmyRichEditCtrl.LineLength(i);
      pmyRichEditCtrl.GetLine(i, strText.GetBuffer(nLineLength));
      strText.ReleaseBuffer(nLineLength);

      strLine.Format(TEXT(&quot;line %d: '%s'\r\n&quot;), i, strText.GetBuffer(0));
      afxDump &lt;&lt; strLine;
   }
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/73346/zeilen-aus-einem-richeditcontrol-auslesen</link><generator>RSS for Node</generator><lastBuildDate>Mon, 27 Apr 2026 05:05:16 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/73346.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 09 May 2004 08:03:42 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Zeilen aus einem RichEditControl auslesen on Sun, 09 May 2004 08:03:42 GMT]]></title><description><![CDATA[<p>Ich bekomme eine Ausnahmeverletzung wenn ich die zeilen einse RichEditCtrl auslesen will. Das liegt wohl an der zeilen:</p>
<p>pmyRichEditCtrl.GetLine(i, strText.GetBuffer(nLineLength));<br />
strText.ReleaseBuffer(nLineLength);</p>
<p>Das krasse an der ganzen sache ist das der code unten ein beispiel aus der msdn ist. Kann mir da jemand weiterhelfen?</p>
<pre><code class="language-cpp">CRichEditCtrl&amp; pmyRichEditCtrl = this-&gt;GetRichEditCtrl();

   int i, nLineLength, nLineCount = pmyRichEditCtrl.GetLineCount();
   CString strText, strLine;

   // Dump every line of text of the rich edit control.
   for (i=0;i &lt; nLineCount;i++)
   {
      nLineLength = pmyRichEditCtrl.LineLength(i);
      pmyRichEditCtrl.GetLine(i, strText.GetBuffer(nLineLength));
      strText.ReleaseBuffer(nLineLength);

      strLine.Format(TEXT(&quot;line %d: '%s'\r\n&quot;), i, strText.GetBuffer(0));
      afxDump &lt;&lt; strLine;
   }
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/516879</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/516879</guid><dc:creator><![CDATA[sven1978]]></dc:creator><pubDate>Sun, 09 May 2004 08:03:42 GMT</pubDate></item><item><title><![CDATA[Reply to Zeilen aus einem RichEditControl auslesen on Sun, 09 May 2004 12:16:38 GMT]]></title><description><![CDATA[<p>Nur ne Idee. Hast Du an</p>
<pre><code class="language-cpp">AfxInitRichEdit();
</code></pre>
<p>gedacht?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/516986</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/516986</guid><dc:creator><![CDATA[Trikor]]></dc:creator><pubDate>Sun, 09 May 2004 12:16:38 GMT</pubDate></item></channel></rss>