<?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[byte array]]></title><description><![CDATA[<p>Hallo!</p>
<p>Ich höre auf die serielle schnittstelle und möchte 20 bytes einlesen. das gerät sendet mir auch 20, aber in meinem array werden nur 8 richtige gespeichert.<br />
woran kann denn das liegen?</p>
<p>vielen dank im voraus,<br />
florian</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/75019/byte-array</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Apr 2026 05:38:49 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/75019.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 26 May 2004 16:35:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to byte array on Wed, 26 May 2004 16:35:30 GMT]]></title><description><![CDATA[<p>Hallo!</p>
<p>Ich höre auf die serielle schnittstelle und möchte 20 bytes einlesen. das gerät sendet mir auch 20, aber in meinem array werden nur 8 richtige gespeichert.<br />
woran kann denn das liegen?</p>
<p>vielen dank im voraus,<br />
florian</p>
]]></description><link>https://www.c-plusplus.net/forum/post/527821</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/527821</guid><dc:creator><![CDATA[thaflo_nichtgeloggt]]></dc:creator><pubDate>Wed, 26 May 2004 16:35:30 GMT</pubDate></item><item><title><![CDATA[Reply to byte array on Wed, 26 May 2004 17:02:32 GMT]]></title><description><![CDATA[<p>!? poste mal ein bißchen Code</p>
<p>MfG</p>
]]></description><link>https://www.c-plusplus.net/forum/post/527833</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/527833</guid><dc:creator><![CDATA[you]]></dc:creator><pubDate>Wed, 26 May 2004 17:02:32 GMT</pubDate></item><item><title><![CDATA[Reply to byte array on Wed, 26 May 2004 17:13:55 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">HANDLE hCom;
hCom = CreateFile(&quot;Com1&quot;,
                    GENERIC_READ | GENERIC_WRITE,
                    0,    // comm geräte müssen mit exklusiven zugriff geöffnet werden
                    NULL, // keine sicherheitsattribute
                    OPEN_EXISTING, // zwingend für comm-geräte
                    0,    // kein overlapped I/O
                    NULL  // muss für geräte NULL sein
                    );
...
byte ba_array[20];
...
WriteFile(hCom,&amp;b_byteToWrite,1,&amp;l_bytesWritten,NULL);
...
ReadFile(hCom,&amp;ba_array,20,&amp;l_bytesRead,NULL);
</code></pre>
<p>und im array stehen ab dem 8. wert unterschiedliche werte, als das gerät gesendet hat (mit serial-monitor gesehen-&gt;und ich weiß,dass das stimmt).</p>
<p>danke,<br />
florian</p>
]]></description><link>https://www.c-plusplus.net/forum/post/527839</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/527839</guid><dc:creator><![CDATA[thaflo_nichteingeloggt]]></dc:creator><pubDate>Wed, 26 May 2004 17:13:55 GMT</pubDate></item><item><title><![CDATA[Reply to byte array on Wed, 26 May 2004 17:17:49 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=403" rel="nofollow">HumeSikkins</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=15" rel="nofollow">C++</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/527841</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/527841</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Wed, 26 May 2004 17:17:49 GMT</pubDate></item><item><title><![CDATA[Reply to byte array on Thu, 27 May 2004 06:59:14 GMT]]></title><description><![CDATA[<p>rückgabewerte ? GetLastError() ? inhalt von l_bytesWritten und l_bytesRead ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/528042</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/528042</guid><dc:creator><![CDATA[miller_m]]></dc:creator><pubDate>Thu, 27 May 2004 06:59:14 GMT</pubDate></item></channel></rss>