<?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[TXT in Edit Box laden]]></title><description><![CDATA[<p>Hallo Leute,</p>
<p>ich will das mein Programm, wenn Leute die richtige Sparte ausgewählt haben, eine News in einer &quot;Edit Box&quot; geladen bekommen!</p>
<p>Newsfile:<br />
<a href="http://www.the-roughnecks.de/load.txt" rel="nofollow">http://www.the-roughnecks.de/load.txt</a></p>
<p>Edit Box soll die load.txt anfordern und die News(Inhalt der TXT Datei) in die Edit Box einfügen! Dürfte ja nicht so schwer sein oder? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f921.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--clown_face"
      title=":clown:"
      alt="🤡"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/topic/87695/txt-in-edit-box-laden</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Apr 2026 03:36:28 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/87695.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 02 Oct 2004 20:01:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to TXT in Edit Box laden on Sat, 02 Oct 2004 20:01:22 GMT]]></title><description><![CDATA[<p>Hallo Leute,</p>
<p>ich will das mein Programm, wenn Leute die richtige Sparte ausgewählt haben, eine News in einer &quot;Edit Box&quot; geladen bekommen!</p>
<p>Newsfile:<br />
<a href="http://www.the-roughnecks.de/load.txt" rel="nofollow">http://www.the-roughnecks.de/load.txt</a></p>
<p>Edit Box soll die load.txt anfordern und die News(Inhalt der TXT Datei) in die Edit Box einfügen! Dürfte ja nicht so schwer sein oder? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f921.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--clown_face"
      title=":clown:"
      alt="🤡"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/619606</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/619606</guid><dc:creator><![CDATA[Bong]]></dc:creator><pubDate>Sat, 02 Oct 2004 20:01:22 GMT</pubDate></item><item><title><![CDATA[Reply to TXT in Edit Box laden on Sat, 02 Oct 2004 21:07:55 GMT]]></title><description><![CDATA[<p>Mit CreateFile(), ReadFile() und CloseHandle() die Datei in einen String-Buffer einlesen.<br />
Mit SetWindowText() den Inhalt des String-Buffers in das Edit-Feld packen...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/619634</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/619634</guid><dc:creator><![CDATA[geeky]]></dc:creator><pubDate>Sat, 02 Oct 2004 21:07:55 GMT</pubDate></item><item><title><![CDATA[Reply to TXT in Edit Box laden on Sat, 02 Oct 2004 21:13:42 GMT]]></title><description><![CDATA[<p>Mal etwas genauer erklärt bitte <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/619635</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/619635</guid><dc:creator><![CDATA[Bong]]></dc:creator><pubDate>Sat, 02 Oct 2004 21:13:42 GMT</pubDate></item><item><title><![CDATA[Reply to TXT in Edit Box laden on Sat, 02 Oct 2004 21:24:59 GMT]]></title><description><![CDATA[<p>Hab mal eben was gefuckelt (ungetestet!)</p>
<pre><code class="language-cpp">HANDLE fHandle;
DWORD fSize;
char *fileBuffer;
DWORD bytesRead;

// Datei öffnen:
fHandle=CreateFile(&quot;Dateiname&quot;,GENERIC_READ,0,NULL,OPEN_EXISTING,0,NULL);
if (fHandle==INVALID_HANDLE_VALUE)
{
	OutputDebugString(&quot;Datei konnte nicht geöffnet werden!\n&quot;);
}

// Dateigröße holen:
fSize=GetFileSize(fHandle,NULL);

// Speicher für die Datei + abschließendes Terminierungszeichen holen:
fileBuffer=(char*)malloc( (fSize+1)*sizeof(char) );

// Datei in den Speicher einlesen:
if (!ReadFile(fHandle,fileBuffer,fSize,&amp;bytesRead,NULL))
{
	OutputDebugString(&quot;Datei konnte nicht eingelesen werden!&quot;);
}

// Terminierungszeichen dranpacken:
fileBuffer[fSize]='\0';

// Datei schließen:
CloseHandle(fHandle);

// Text im Speicher in das Textfeld kopieren:
SetWindowText(HandleDesEditFeldes,fileBuffer);

// Speicher wieder freigeben:
free(fileBuffer);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/619637</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/619637</guid><dc:creator><![CDATA[geeky]]></dc:creator><pubDate>Sat, 02 Oct 2004 21:24:59 GMT</pubDate></item><item><title><![CDATA[Reply to TXT in Edit Box laden on Sat, 02 Oct 2004 23:04:42 GMT]]></title><description><![CDATA[<p>Und wenn das schöne Stück aus dem Internet kommen soll, dann am besten <a href="http://www.win-api.com/index.php?content=resources&amp;mode=5&amp;ttid=103" rel="nofollow">damit</a> erst runterladen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/619652</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/619652</guid><dc:creator><![CDATA[nirsaja]]></dc:creator><pubDate>Sat, 02 Oct 2004 23:04:42 GMT</pubDate></item></channel></rss>