<?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[Welche COM-Ports sind verfügbar?]]></title><description><![CDATA[<p>Hi Leute,</p>
<p>ich habe eine kurze Frage:</p>
<p>Es muss doch eine Möglichkeit geben, die verfügbaren COM-Ports rauszukriegen?</p>
<p>Oder muss ich mit CreateFile jeden COM-Port (z. B. COM1 bis COM6) testen und auf Success abfragen?</p>
<p>Grüße</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/163166/welche-com-ports-sind-verfügbar</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Jul 2026 17:05:51 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/163166.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 26 Oct 2006 15:09:35 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Welche COM-Ports sind verfügbar? on Thu, 26 Oct 2006 15:09:35 GMT]]></title><description><![CDATA[<p>Hi Leute,</p>
<p>ich habe eine kurze Frage:</p>
<p>Es muss doch eine Möglichkeit geben, die verfügbaren COM-Ports rauszukriegen?</p>
<p>Oder muss ich mit CreateFile jeden COM-Port (z. B. COM1 bis COM6) testen und auf Success abfragen?</p>
<p>Grüße</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1161997</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1161997</guid><dc:creator><![CDATA[AsterX]]></dc:creator><pubDate>Thu, 26 Oct 2006 15:09:35 GMT</pubDate></item><item><title><![CDATA[Reply to Welche COM-Ports sind verfügbar? on Thu, 26 Oct 2006 15:55:12 GMT]]></title><description><![CDATA[<p>Du musst ja zuerst mal rausfinden, welche COM-Ports es gibt... =&gt;<br />
<a href="http://www.naughter.com/enumser.html" rel="nofollow">http://www.naughter.com/enumser.html</a></p>
<p>Dann kommst Du wohl nicht darum den Port zu öffnen...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1162036</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1162036</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Thu, 26 Oct 2006 15:55:12 GMT</pubDate></item><item><title><![CDATA[Reply to Welche COM-Ports sind verfügbar? on Thu, 26 Oct 2006 16:22:23 GMT]]></title><description><![CDATA[<p>Vielen Dank für die schnelle Antwort!</p>
<p>Also muss ich wirklich nacheinander testen (CreateFile auf Success) für jeden Port der infrage käme.<br />
(So verstehe ich zumindest die Source-Codes aus Deimem Link)</p>
<p>Wie macht ihr/Du das üblicherweise?<br />
Begrenzt Du die Anzahl möglicher COM-Ports auf z. B. 1 bis 10?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1162063</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1162063</guid><dc:creator><![CDATA[AsterX]]></dc:creator><pubDate>Thu, 26 Oct 2006 16:22:23 GMT</pubDate></item><item><title><![CDATA[Reply to Welche COM-Ports sind verfügbar? on Thu, 26 Oct 2006 16:34:59 GMT]]></title><description><![CDATA[<p>Ich habe mir den Link jetzt nicht angeschaut, aber: Das per CreateFile zu lösen, ist absolut behämmert. Wenn da Bluetooth-Geräte mit ins Spiel kommen, die beim Öffnen sofort versuchen, eine Verbindung herzustellen, kannst Du mindestens bis Halloween 2007 warten.</p>
<p><strong>Sehr</strong> viel schneller geht das per QueryDosDevice:</p>
<pre><code class="language-cpp">BOOL PortExists(UINT_PTR PortNumber)
{
    TCHAR Name[32];
    wsprintf(Name, TEXT(&quot;COM%u&quot;), PortNumber);
    QueryDosDevice(Name, NULL, 0);
    return(GetLastError() == ERROR_INSUFFICIENT_BUFFER);
}
</code></pre>
<p>Ich denke das es reicht, die Funktion von 1..255 aufzurufen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1162069</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1162069</guid><dc:creator><![CDATA[Gästchen]]></dc:creator><pubDate>Thu, 26 Oct 2006 16:34:59 GMT</pubDate></item><item><title><![CDATA[Reply to Welche COM-Ports sind verfügbar? on Thu, 26 Oct 2006 16:41:34 GMT]]></title><description><![CDATA[<p>Gästchen schrieb:</p>
<blockquote>
<p>Ich habe mir den Link jetzt nicht angeschaut, aber: Das per CreateFile zu lösen, ist absolut behämmert.</p>
</blockquote>
<p>???? Es ging nicht darum zu testen, ob es einen Port <strong>gibt</strong> sondern ob er &quot;verfügbar&quot; ist... Unter verfügbar verstehe ich, ob ich ihn öffnen kann...<br />
Aber vielleicht hat der OP sich nur ungeschickt ausgedrückt und meine: Alle die es gibt (und vielleicht schon belegt sind).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1162074</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1162074</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Thu, 26 Oct 2006 16:41:34 GMT</pubDate></item><item><title><![CDATA[Reply to Welche COM-Ports sind verfügbar? on Thu, 26 Oct 2006 17:03:27 GMT]]></title><description><![CDATA[<p>Sorry für die Verwirrung.</p>
<p>Mein Problem:<br />
Ich möchte z. B. in einer ComboBox eine Liste der COM-Ports zur Auswahl stellen, die zur seriellen Kommunikation verfügbar sind, also<br />
1. im PC vorhanden sind und<br />
2. auch frei sind, d. h. die kann ich benutzen.</p>
<p>Dann möchte ich über den gewählten COM-Port die eingehenden Daten in eine Datei in hex-Schreibweise speichern, z.B:<br />
56 E4 FF 35 A6 99 etc</p>
<p>Im nächsten Schritt möchte ich die gespeicherten Daten gemäß eines Protokolls auswerten (in der Endfassung meines Programms soll das in Echtzeit gehen, also schon während der Aufzeichnung)...</p>
<p>Aber soweit bin ich ja noch nicht.</p>
<p>Grüße und vielen Dank für eure Postings</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1162086</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1162086</guid><dc:creator><![CDATA[AsterX]]></dc:creator><pubDate>Thu, 26 Oct 2006 17:03:27 GMT</pubDate></item><item><title><![CDATA[Reply to Welche COM-Ports sind verfügbar? on Thu, 26 Oct 2006 18:07:21 GMT]]></title><description><![CDATA[<p>Zum &quot;enumerieren&quot; siehe mein erstes Post.<br />
Für den Zugriff rate ich zu<br />
<a href="http://www.codeproject.com/system/serial.asp" rel="nofollow">http://www.codeproject.com/system/serial.asp</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1162131</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1162131</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Thu, 26 Oct 2006 18:07:21 GMT</pubDate></item></channel></rss>