<?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[Kommunikation zwischen Prozessen]]></title><description><![CDATA[<p>Ich starte per CreateProcess() einen Prozess. Er erzeugt gewisse Daten, wie kann ich aush meinem Elternprozess an diese Daten rankommen, also welche Wege der Kommunikation gibt es? Sowas wie Callback wäre nicht schlecht. Das einzige was mir so einfällt ist die Ausgabe am STDOUT abzufangen...<br />
Wobei es ziemlich viele Daten sind, d.h. ich müsste innerhalb einer Schleife ca. 5 mal in der Sekunde abfragen...</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/114433/kommunikation-zwischen-prozessen</link><generator>RSS for Node</generator><lastBuildDate>Thu, 02 Jul 2026 00:41:45 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/114433.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 04 Jul 2005 11:51:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Kommunikation zwischen Prozessen on Mon, 04 Jul 2005 11:52:30 GMT]]></title><description><![CDATA[<p>Ich starte per CreateProcess() einen Prozess. Er erzeugt gewisse Daten, wie kann ich aush meinem Elternprozess an diese Daten rankommen, also welche Wege der Kommunikation gibt es? Sowas wie Callback wäre nicht schlecht. Das einzige was mir so einfällt ist die Ausgabe am STDOUT abzufangen...<br />
Wobei es ziemlich viele Daten sind, d.h. ich müsste innerhalb einer Schleife ca. 5 mal in der Sekunde abfragen...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/823242</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/823242</guid><dc:creator><![CDATA[JokerXXL]]></dc:creator><pubDate>Mon, 04 Jul 2005 11:52:30 GMT</pubDate></item><item><title><![CDATA[Reply to Kommunikation zwischen Prozessen on Mon, 04 Jul 2005 12:10:48 GMT]]></title><description><![CDATA[<p>Man könnte das über Events und Nachrichten lösen.</p>
<p>-&gt; PostThreadMessage</p>
<p>Gruß<br />
Horst</p>
]]></description><link>https://www.c-plusplus.net/forum/post/823259</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/823259</guid><dc:creator><![CDATA[Horst2]]></dc:creator><pubDate>Mon, 04 Jul 2005 12:10:48 GMT</pubDate></item><item><title><![CDATA[Reply to Kommunikation zwischen Prozessen on Mon, 04 Jul 2005 12:26:50 GMT]]></title><description><![CDATA[<p>Shared Memory wäre eine weitere Möglichkeit.</p>
<p>Rob'</p>
]]></description><link>https://www.c-plusplus.net/forum/post/823271</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/823271</guid><dc:creator><![CDATA[Rob&#x27;]]></dc:creator><pubDate>Mon, 04 Jul 2005 12:26:50 GMT</pubDate></item><item><title><![CDATA[Reply to Kommunikation zwischen Prozessen on Mon, 04 Jul 2005 13:14:47 GMT]]></title><description><![CDATA[<p>Wie funktioniert das mit SharedMemory?</p>
<p>@Horst<br />
Wie teile ich meinem Kinderprozess die ThreadID mit, an die die Nachrichten gesendet werden sollen? Könnte man das über Kommandozeilenparamter machen, also die ThreadID als String übergeben und danach in DWORD umwandeln???</p>
]]></description><link>https://www.c-plusplus.net/forum/post/823326</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/823326</guid><dc:creator><![CDATA[JokerXXL]]></dc:creator><pubDate>Mon, 04 Jul 2005 13:14:47 GMT</pubDate></item><item><title><![CDATA[Reply to Kommunikation zwischen Prozessen on Mon, 04 Jul 2005 14:09:13 GMT]]></title><description><![CDATA[<p>Wenn Du statt CreateProcess() CreateThread() verwendest, kannst Du einen Pointer auf Daten oder Datenstruct mitgeben, die die ThreadID enthalten. Und dann kann man mit PostThreadMessage() Daten nicht nur zurück, sondern auch hinsenden.</p>
<p>Blackbird</p>
]]></description><link>https://www.c-plusplus.net/forum/post/823390</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/823390</guid><dc:creator><![CDATA[*zufaulzumeinloggen*]]></dc:creator><pubDate>Mon, 04 Jul 2005 14:09:13 GMT</pubDate></item><item><title><![CDATA[Reply to Kommunikation zwischen Prozessen on Mon, 04 Jul 2005 14:11:43 GMT]]></title><description><![CDATA[<p><em>zufaulzumeinloggen</em> schrieb:</p>
<blockquote>
<p>Wenn Du statt CreateProcess() CreateThread() verwendest, kannst Du einen Pointer auf Daten oder Datenstruct mitgeben, die die ThreadID enthalten. Und dann kann man mit PostThreadMessage() Daten nicht nur zurück, sondern auch hinsenden.</p>
<p>Blackbird</p>
</blockquote>
<p>Mit CreateThread kann man doch kein Programm starten <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/823395</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/823395</guid><dc:creator><![CDATA[:confused:]]></dc:creator><pubDate>Mon, 04 Jul 2005 14:11:43 GMT</pubDate></item><item><title><![CDATA[Reply to Kommunikation zwischen Prozessen on Mon, 04 Jul 2005 14:29:33 GMT]]></title><description><![CDATA[<p><a href="http://www.codeproject.com/threads/#Inter%2DProcess+Communication" rel="nofollow">http://www.codeproject.com/threads/#Inter-Process+Communication</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/823409</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/823409</guid><dc:creator><![CDATA[IPC]]></dc:creator><pubDate>Mon, 04 Jul 2005 14:29:33 GMT</pubDate></item><item><title><![CDATA[Reply to Kommunikation zwischen Prozessen on Mon, 04 Jul 2005 16:26:18 GMT]]></title><description><![CDATA[<p>Mit CreateFileMapping, MapViewOfFile, usw. Ich habe es benutzt, um eine DLL zu schreiben, wo alle aufrufenden Prozesse den gleichen Speicherbereich verwenden.</p>
<pre><code class="language-cpp">// Create a named file mapping object.
      hMapObject = CreateFileMapping(
                (HANDLE) 0xFFFFFFFF, // use paging file
                NULL,                // no security attributes
                PAGE_READWRITE,      // read/write access
                0,                   // size: high 32-bits
                sizeof(TPLCComm),           // size: low 32-bits
                &quot;NameOfMyObject&quot;);    // name of map object
      if (hMapObject == NULL) return FALSE;

      // The first process to attach initializes memory.

      init = (GetLastError() != ERROR_ALREADY_EXISTS);

      // Get a pointer to the file-mapped shared memory.

      PMyObject = (TMyObject*) MapViewOfFile(
                hMapObject,     // object to map view of
                FILE_MAP_WRITE, // read/write access
                0,              // high offset:  map from
                0,              // low offset:   beginning
                0);             // default: map entire file
      if (PPLCComm == NULL) return FALSE;
</code></pre>
<p>In der Win32-Hilfe oder bei MS müßte es auch ein ausführlicheres Beispiel geben.</p>
<p>Rob'</p>
]]></description><link>https://www.c-plusplus.net/forum/post/823492</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/823492</guid><dc:creator><![CDATA[Rob&#x27;]]></dc:creator><pubDate>Mon, 04 Jul 2005 16:26:18 GMT</pubDate></item></channel></rss>