<?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[Input&#x2F;output error]]></title><description><![CDATA[<p>Hallo Leute!!</p>
<p>Ich habe ein kleines Problem, denn ich versuche die serielle Schnittstelle unter Win zu reinitialisieren. Dabei verwende ich u.a. folgenden Code:</p>
<pre><code>hPort = CreateFile(
    cpPortName,
    GENERIC_READ | GENERIC_WRITE,
    FILE_SHARE_READ | FILE_SHARE_WRITE,
    NULL,
    OPEN_EXISTING | CREATE_ALWAYS,
    FILE_FLAG_RANDOM_ACCESS,
    NULL
);
</code></pre>
<p>um erst mal s entsprechende File für die richtige COM_Schnittstelle zu öffnen. In &quot;cpPortName&quot; steht übrigens folgendes:</p>
<p>&quot;COM1:&quot;</p>
<p>Jedenfalls habe ich mit dem ganzen zeugs hier folgendes Problem:<br />
Ich herhalte mit GetLastError() die Fehlernummer 5 = Input/output error!!</p>
<p>Was kann ich jetzt mit dieser tollen Fehlermeldung anfangen?? Bzw. was genau will sie mir sagen, außer dass ich n Problem dabei habe mein File zu öffnen, bzw. zu createn.</p>
<p>Vielleicht hat ja jemand ne Idee...</p>
<p>Gruß<br />
mb</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/103314/input-output-error</link><generator>RSS for Node</generator><lastBuildDate>Fri, 01 May 2026 16:57:08 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/103314.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 07 Mar 2005 12:14:21 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Input&#x2F;output error on Mon, 07 Mar 2005 12:14:21 GMT]]></title><description><![CDATA[<p>Hallo Leute!!</p>
<p>Ich habe ein kleines Problem, denn ich versuche die serielle Schnittstelle unter Win zu reinitialisieren. Dabei verwende ich u.a. folgenden Code:</p>
<pre><code>hPort = CreateFile(
    cpPortName,
    GENERIC_READ | GENERIC_WRITE,
    FILE_SHARE_READ | FILE_SHARE_WRITE,
    NULL,
    OPEN_EXISTING | CREATE_ALWAYS,
    FILE_FLAG_RANDOM_ACCESS,
    NULL
);
</code></pre>
<p>um erst mal s entsprechende File für die richtige COM_Schnittstelle zu öffnen. In &quot;cpPortName&quot; steht übrigens folgendes:</p>
<p>&quot;COM1:&quot;</p>
<p>Jedenfalls habe ich mit dem ganzen zeugs hier folgendes Problem:<br />
Ich herhalte mit GetLastError() die Fehlernummer 5 = Input/output error!!</p>
<p>Was kann ich jetzt mit dieser tollen Fehlermeldung anfangen?? Bzw. was genau will sie mir sagen, außer dass ich n Problem dabei habe mein File zu öffnen, bzw. zu createn.</p>
<p>Vielleicht hat ja jemand ne Idee...</p>
<p>Gruß<br />
mb</p>
]]></description><link>https://www.c-plusplus.net/forum/post/739463</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/739463</guid><dc:creator><![CDATA[mb0156ba]]></dc:creator><pubDate>Mon, 07 Mar 2005 12:14:21 GMT</pubDate></item><item><title><![CDATA[Reply to Input&#x2F;output error on Mon, 07 Mar 2005 15:39:58 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile.php?mode=viewprofile&amp;u=1819" rel="nofollow">kingruedi</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=8" rel="nofollow">Rund um die Programmierung</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=4" rel="nofollow">WinAPI</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic.php?t=39405" rel="nofollow">C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?</a></p>
<p><em>Dieses Posting wurde automatisch erzeugt.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/739672</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/739672</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Mon, 07 Mar 2005 15:39:58 GMT</pubDate></item><item><title><![CDATA[Reply to Input&#x2F;output error on Mon, 07 Mar 2005 15:48:12 GMT]]></title><description><![CDATA[<p><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/base/createfile.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/base/createfile.asp</a></p>
<p>msdn schrieb:</p>
<blockquote>
<p>In the ANSI version of this function, the name is limited to MAX_PATH characters. To extend this limit to 32,767 wide characters, call the Unicode version of the function and prepend &quot;\?\&quot; to the path. For more information, see Naming a File.</p>
</blockquote>
<p><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/base/naming_a_file.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/base/naming_a_file.asp</a></p>
<p>sprich</p>
<pre><code class="language-cpp">CreateFile(&quot;\\\\.\\COM1&quot;, ...
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/739678</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/739678</guid><dc:creator><![CDATA[miller_m]]></dc:creator><pubDate>Mon, 07 Mar 2005 15:48:12 GMT</pubDate></item><item><title><![CDATA[Reply to Input&#x2F;output error on Tue, 08 Mar 2005 07:27:40 GMT]]></title><description><![CDATA[<p>hmmm...habe das Problem nun eigentlich gefunden...ich hatte noch ne Anwendung offen, die auf die serielle Schnittstelle zugegriffen hat und demnach alles blockierte...richtig dämlich...:((</p>
<p>was nun die andere Formatierung des Dateipfades bringt...k.a....werde das aber zusätzlich ma ausprobieren und durchlesen...</p>
<p>trotzdem danke!</p>
<p>gruß<br />
mb</p>
]]></description><link>https://www.c-plusplus.net/forum/post/740158</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/740158</guid><dc:creator><![CDATA[mb0156ba]]></dc:creator><pubDate>Tue, 08 Mar 2005 07:27:40 GMT</pubDate></item><item><title><![CDATA[Reply to Input&#x2F;output error on Tue, 08 Mar 2005 07:47:27 GMT]]></title><description><![CDATA[<p>FILE_FLAG_SEQUENTIAL_SCAN is uebrigens besser als FILE_FLAG_RANDOM_ACCESS, da serielle Schnittstellen ja per se streamorientiert sind.</p>
<p>Die alternative Pfadnotation bezieht sich nur auf Pfade groesser MAX_PATH (MAX_PATH ist etwa als 200 definiert). Kurze Dateinamen wie &quot;COM1:&quot; sind davon nicht betroffen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/740168</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/740168</guid><dc:creator><![CDATA[Power Off]]></dc:creator><pubDate>Tue, 08 Mar 2005 07:47:27 GMT</pubDate></item><item><title><![CDATA[Reply to Input&#x2F;output error on Tue, 08 Mar 2005 10:00:38 GMT]]></title><description><![CDATA[<p>Power Off schrieb:</p>
<blockquote>
<p>(MAX_PATH ist etwa als 200 definiert)</p>
</blockquote>
<p>WINDEF.H schrieb:</p>
<blockquote>
<pre><code class="language-cpp">#define MAX_PATH 260
</code></pre>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/740239</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/740239</guid><dc:creator><![CDATA[Hepi]]></dc:creator><pubDate>Tue, 08 Mar 2005 10:00:38 GMT</pubDate></item></channel></rss>