<?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[Inhalt der ASCII Datei stimmt nicht mit Listenfeld überein]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe da ein Problem mit der ASCI-Codierung. Ich schreibe in eine ganz normale Textdatei eine Überschrift die unterstrichen ist rein und dadrunter Ausfallzeiten. Wenn ich das ganze Anschliessend in meinem Listenfeld anzeigen will, stimmt die komplette Formatierung nicht, z.B. Der Unterstrich ist kürzer.<br />
Woran liegt das und wie kann ich das beheben ?</p>
<p>Gruss</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/6435/inhalt-der-ascii-datei-stimmt-nicht-mit-listenfeld-überein</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Apr 2026 03:36:17 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/6435.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 03 Jul 2003 07:12:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Inhalt der ASCII Datei stimmt nicht mit Listenfeld überein on Thu, 03 Jul 2003 07:12:00 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe da ein Problem mit der ASCI-Codierung. Ich schreibe in eine ganz normale Textdatei eine Überschrift die unterstrichen ist rein und dadrunter Ausfallzeiten. Wenn ich das ganze Anschliessend in meinem Listenfeld anzeigen will, stimmt die komplette Formatierung nicht, z.B. Der Unterstrich ist kürzer.<br />
Woran liegt das und wie kann ich das beheben ?</p>
<p>Gruss</p>
]]></description><link>https://www.c-plusplus.net/forum/post/31229</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/31229</guid><dc:creator><![CDATA[Hans]]></dc:creator><pubDate>Thu, 03 Jul 2003 07:12:00 GMT</pubDate></item><item><title><![CDATA[Reply to Inhalt der ASCII Datei stimmt nicht mit Listenfeld überein on Thu, 03 Jul 2003 07:20:00 GMT]]></title><description><![CDATA[<p>Verweise auf <a href="http://www.c-plusplus.net/forum/topic,6416.html" rel="nofollow">Absturz in Thread bei Zugriff auf Fortschrittbalken</a><br />
Beitrag 2</p>
]]></description><link>https://www.c-plusplus.net/forum/post/31230</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/31230</guid><dc:creator><![CDATA[RenéG]]></dc:creator><pubDate>Thu, 03 Jul 2003 07:20:00 GMT</pubDate></item><item><title><![CDATA[Reply to Inhalt der ASCII Datei stimmt nicht mit Listenfeld überein on Thu, 03 Jul 2003 07:39:00 GMT]]></title><description><![CDATA[<p>Hallo irgendwie haben wir uns da missverstanden ich suche eine funktion die eine ascii datei so umwandelt das man in der Listbox die gleiche Formatierung erhällt</p>
]]></description><link>https://www.c-plusplus.net/forum/post/31231</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/31231</guid><dc:creator><![CDATA[Hans]]></dc:creator><pubDate>Thu, 03 Jul 2003 07:39:00 GMT</pubDate></item><item><title><![CDATA[Reply to Inhalt der ASCII Datei stimmt nicht mit Listenfeld überein on Thu, 03 Jul 2003 07:43:00 GMT]]></title><description><![CDATA[<p>NEIN, du hast mich missverstanden.<br />
Du hast einen Fehler in deinem Code, denn normalerweise funzt das perfekt. WIR sind kein Hellseher, deine Fehler zu erkennen, ohne auch nur eine Zeile deines Codes zu sehen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/31232</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/31232</guid><dc:creator><![CDATA[RenéG]]></dc:creator><pubDate>Thu, 03 Jul 2003 07:43:00 GMT</pubDate></item><item><title><![CDATA[Reply to Inhalt der ASCII Datei stimmt nicht mit Listenfeld überein on Thu, 03 Jul 2003 08:06:00 GMT]]></title><description><![CDATA[<p>ach soo ja stimmt hast auch mal wieder recht. Hier der Code m_strDisp ist die Variable des Listenfeldes.</p>
<pre><code class="language-cpp">CFileDialog m_dlgFile(TRUE, _T(&quot;log&quot;), _T(&quot;*.log&quot;)); // TRUE = Datei öffnen,FALSE = Datei speichern 

if(m_dlgFile.DoModal() == IDOK)     // erst mit OK bestätigen modeler Dialog
{    
 m_strPathLogTMP = m_dlgFile.GetPathName();      
 CString tmpLogPath;
 tmpLogPath = m_strPathLogTMP;
 int pos = tmpLogPath.Find(&quot;log&quot;); // letztes '\' finden
 tmpLogPath = tmpLogPath.Right(3); // Name der Exe abtrennen, so dass nur noch der Pfad übrig bleibt

if(tmpLogPath != &quot;log&quot;)
 MessageBox(&quot;Die von Ihnen gewählte Datei ist kein Logfile des  Programms.&quot;, &quot;Abbruch&quot;, MB_ICONSTOP);

else
{
 CFile datei(m_strPathLogTMP, CFile::modeRead); 
 DWORD size_buff = datei.GetLength();   

  if(size_buff == 0)
   MessageBox(&quot;Das Logfile ist leer !!!&quot;, &quot;Fehler&quot;, MB_ICONERROR);

  else
  {
   TCHAR* pStr = new TCHAR[size_buff+1];
   datei.Read(pStr, size_buff);
   pStr[size_buff] = 0;
   datei.Close();

   CString strLatch = &quot; &quot;;
   m_strDisp.ResetContent();

   for(int i=0; i &lt; (size_buff+1); i++)
   {
    if((pStr[i] == '\n') &amp;&amp; (pStr[i] != '\r'))
   {
   m_strDisp.AddString(strLatch);
   strLatch=&quot;&quot;;
  }

  if((pStr[i] != '\n') &amp;&amp; (pStr[i] != '\r'))
   strLatch = strLatch+pStr[i];
 }
 delete[] pStr;
}
}
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/31233</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/31233</guid><dc:creator><![CDATA[Hans]]></dc:creator><pubDate>Thu, 03 Jul 2003 08:06:00 GMT</pubDate></item><item><title><![CDATA[Reply to Inhalt der ASCII Datei stimmt nicht mit Listenfeld überein on Thu, 03 Jul 2003 08:15:00 GMT]]></title><description><![CDATA[<p>Hier im Forum gibts schon genug Beiträge, wie man eine Datei zeilenweise ausliest. Such mal nach CStdioFile.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/31234</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/31234</guid><dc:creator><![CDATA[RenéG]]></dc:creator><pubDate>Thu, 03 Jul 2003 08:15:00 GMT</pubDate></item><item><title><![CDATA[Reply to Inhalt der ASCII Datei stimmt nicht mit Listenfeld überein on Thu, 03 Jul 2003 12:45:00 GMT]]></title><description><![CDATA[<p>Ich möchte aber CFile anstatt CStdioFile benutzen geht das nicht wenn nein warum nicht ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/31235</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/31235</guid><dc:creator><![CDATA[Hans]]></dc:creator><pubDate>Thu, 03 Jul 2003 12:45:00 GMT</pubDate></item></channel></rss>