<?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[automatische Portwahl]]></title><description><![CDATA[<p>Hallo Leute!</p>
<p>Brauche dringend Hilfe:<br />
ich möchte Daten übertragen und muss dafür mit einem Port verbinden. Ich habe das so gemacht<br />
hFile = CreateFile(L&quot;\\\.\\COM7&quot;,GENERIC_WRITE|GENERIC_READ,0,NULL,OPEN_EXISTING,0,0);</p>
<p>D.h. ich verbinde immer mit einem bestimmten Port. Wie kann ich es aber so machen, dass sich das Gerät automatisch mit einem Port verbindet ohne dass ich das manuell ändern muss? Denn der Port ändert sich ab und zu und dann muss ich in den Quellcode und dann die Nummer ändern.</p>
<p>Ich danke euch schin mal.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/250785/automatische-portwahl</link><generator>RSS for Node</generator><lastBuildDate>Tue, 15 Sep 2026 21:47:01 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/250785.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 24 Sep 2009 07:26:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to automatische Portwahl on Thu, 24 Sep 2009 07:26:38 GMT]]></title><description><![CDATA[<p>Hallo Leute!</p>
<p>Brauche dringend Hilfe:<br />
ich möchte Daten übertragen und muss dafür mit einem Port verbinden. Ich habe das so gemacht<br />
hFile = CreateFile(L&quot;\\\.\\COM7&quot;,GENERIC_WRITE|GENERIC_READ,0,NULL,OPEN_EXISTING,0,0);</p>
<p>D.h. ich verbinde immer mit einem bestimmten Port. Wie kann ich es aber so machen, dass sich das Gerät automatisch mit einem Port verbindet ohne dass ich das manuell ändern muss? Denn der Port ändert sich ab und zu und dann muss ich in den Quellcode und dann die Nummer ändern.</p>
<p>Ich danke euch schin mal.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1783403</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1783403</guid><dc:creator><![CDATA[lenchen]]></dc:creator><pubDate>Thu, 24 Sep 2009 07:26:38 GMT</pubDate></item><item><title><![CDATA[Reply to automatische Portwahl on Thu, 24 Sep 2009 07:43:48 GMT]]></title><description><![CDATA[<p>Hm, du könntest ja nach dem richtigen Port suchen. Du klapperst alle COM-Ports ab und sendest eine bestimmte Anfrage, auf die du die Antwort kennst. Wenn geantwortet wird, hast du das Gerät gefunden. Wenn die Kommunikation mit dem Gerät schnell genug ist, kannst du einfach alle COM-Ports, sagen wir mal bis 99 oder so abklappern. Ansonsten müsstest du vorher noch in Erfahrung bringen, welche Ports wirklich vorhanden sind.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1783409</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1783409</guid><dc:creator><![CDATA[_matze]]></dc:creator><pubDate>Thu, 24 Sep 2009 07:43:48 GMT</pubDate></item><item><title><![CDATA[Reply to automatische Portwahl on Thu, 24 Sep 2009 09:55:06 GMT]]></title><description><![CDATA[<p>Hat aber auf jeden fall nichts mit standard c++ zu tun sondern ist windows spezifisch</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1783485</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1783485</guid><dc:creator><![CDATA[Fencer]]></dc:creator><pubDate>Thu, 24 Sep 2009 09:55:06 GMT</pubDate></item><item><title><![CDATA[Reply to automatische Portwahl on Thu, 24 Sep 2009 11:15:23 GMT]]></title><description><![CDATA[<p>Ich habe einen Programmteil drin der mir die Ports des Computers ausgibt.<br />
Das Gerät müsste sich noch irgendwie selnst mit dem richtigen verbinden <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
<p>Gibt es sowas?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1783517</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1783517</guid><dc:creator><![CDATA[@ _Matze]]></dc:creator><pubDate>Thu, 24 Sep 2009 11:15:23 GMT</pubDate></item></channel></rss>