<?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[ReadConsole, maximale Buffergrösse]]></title><description><![CDATA[<p>Hallo</p>
<p>Ich möchte gerne die gesamte Benutzereingabe in einer mit AllocConsole erzeugten Konsole per ReadConsoleW lesen.<br />
Das klappt auch soweit. Allerdings muss man der Funktion einen Buffer übergeben sowie seine grösse. Das wäre ja kein Problem, wenn ich wüsste,<br />
wieviele Zeichen ein Benutzer maximal eingeben kann.</p>
<p>Auf MSDN steht:</p>
<blockquote>
<blockquote>
<p>A pointer to a buffer that receives the data read from the console input buffer.<br />
The total size of the buffer required will be less than 64K.</p>
</blockquote>
</blockquote>
<p>Hab also den Buffer mal auf 64K gesetzt und die grösse übergeben.<br />
Fehlanzeige, ReadConsoleW schlägt fehl.<br />
Mit kleineren Buffergrössen funktioniert alles.</p>
<p>Wie kann ich dieses Problem umgehen?<br />
Wie lese ich die gesamte (maximale) Benutzereingabe?</p>
<p>Danke, gruss SCRJ.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/233757/readconsole-maximale-buffergrösse</link><generator>RSS for Node</generator><lastBuildDate>Wed, 08 Apr 2026 20:45:46 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/233757.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 08 Feb 2009 20:00:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ReadConsole, maximale Buffergrösse on Sun, 08 Feb 2009 20:00:36 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Ich möchte gerne die gesamte Benutzereingabe in einer mit AllocConsole erzeugten Konsole per ReadConsoleW lesen.<br />
Das klappt auch soweit. Allerdings muss man der Funktion einen Buffer übergeben sowie seine grösse. Das wäre ja kein Problem, wenn ich wüsste,<br />
wieviele Zeichen ein Benutzer maximal eingeben kann.</p>
<p>Auf MSDN steht:</p>
<blockquote>
<blockquote>
<p>A pointer to a buffer that receives the data read from the console input buffer.<br />
The total size of the buffer required will be less than 64K.</p>
</blockquote>
</blockquote>
<p>Hab also den Buffer mal auf 64K gesetzt und die grösse übergeben.<br />
Fehlanzeige, ReadConsoleW schlägt fehl.<br />
Mit kleineren Buffergrössen funktioniert alles.</p>
<p>Wie kann ich dieses Problem umgehen?<br />
Wie lese ich die gesamte (maximale) Benutzereingabe?</p>
<p>Danke, gruss SCRJ.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1660156</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1660156</guid><dc:creator><![CDATA[SCRJ]]></dc:creator><pubDate>Sun, 08 Feb 2009 20:00:36 GMT</pubDate></item><item><title><![CDATA[Reply to ReadConsole, maximale Buffergrösse on Sun, 08 Feb 2009 21:03:58 GMT]]></title><description><![CDATA[<p>ja die MSDN sagt doch less than 64k, also mach den puffer doch mal 64k-1 bytes groß.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1660196</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1660196</guid><dc:creator><![CDATA[Bernibutt]]></dc:creator><pubDate>Sun, 08 Feb 2009 21:03:58 GMT</pubDate></item><item><title><![CDATA[Reply to ReadConsole, maximale Buffergrösse on Sun, 08 Feb 2009 21:12:05 GMT]]></title><description><![CDATA[<p>...Funktioniert nicht.<br />
Mit einem Buffer von der Grösse von ungefähr 20K funktionierts noch.<br />
Grösser geht nicht mehr.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1660201</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1660201</guid><dc:creator><![CDATA[SCRJ]]></dc:creator><pubDate>Sun, 08 Feb 2009 21:12:05 GMT</pubDate></item><item><title><![CDATA[Reply to ReadConsole, maximale Buffergrösse on Sun, 08 Feb 2009 21:17:11 GMT]]></title><description><![CDATA[<p>Da steht aber, dass dein Buffer so gross sein muss dass 1 Kilo Bytes reinpassen. Also musst du erstmal schauen wie gross und wie schwer 1 Byte ist und das Volumen hochrechnen.</p>
<p>Grüße</p>
<p>Ein Stein</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1660205</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1660205</guid><dc:creator><![CDATA[Ein Stein]]></dc:creator><pubDate>Sun, 08 Feb 2009 21:17:11 GMT</pubDate></item><item><title><![CDATA[Reply to ReadConsole, maximale Buffergrösse on Sun, 08 Feb 2009 21:43:52 GMT]]></title><description><![CDATA[<blockquote>
<blockquote>
<p>Da steht aber...<br />
Wo?</p>
</blockquote>
</blockquote>
<blockquote>
<blockquote>
<p>Also musst du erstmal schauen wie gross und wie schwer 1 Byte ist und das Volumen hochrechnen.<br />
Ich schätze ein Byte auf 2.343 Gramm...</p>
</blockquote>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/1660214</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1660214</guid><dc:creator><![CDATA[SCRJ]]></dc:creator><pubDate>Sun, 08 Feb 2009 21:43:52 GMT</pubDate></item></channel></rss>