<?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[.dll als Interface?????????]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe eine generelle Frage zu einer DLL.</p>
<p>Kann ich eine DLL als Interface zwischen zwei laufenden Programmen benutzten?</p>
<p>Geht es das beide Programme gleichzeitig auf die DLL zugreifem und aus verschieden Funktionen lesen, bzw. in sie hineinschreiben?</p>
<p><strong>Beispiel:</strong></p>
<p>Ich habe zwei Programme:<br />
Prog1<br />
Prog2</p>
<p>und zwei Funktionen die sich in der DLL befinden:<br />
funk1<br />
funk2</p>
<p>Scenario:<br />
Prog1 schreibt einen Wert in funk1. Prog2 ließt aus funk1 und berechnet irgendwas, schreibt die Antwort dann in funk2.<br />
Daraufhin ließt Prog1 aus funk2.</p>
<p>-&gt; Ist so etwas in der Art möglich?</p>
<p>-&gt; Kann man eine DLL als Schnittstelle zwischen zwei Programmen benutzten?</p>
<p>-&gt; Wie könnte man so etwas realisieren?</p>
<p>-&gt; Geht das vielleicht mir &quot;fork&quot; und &quot;sleep&quot; (ich bin mir nicht ganz sicher ob ich dies zwei Begriffe schon einmal in diesem Zusammenhang gehört habe)</p>
<p>Wenn das nicht geht, wie könnte man so etwas ohne DLL machen?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/147611/dll-als-interface</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Jul 2026 00:10:38 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/147611.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 18 May 2006 14:47:07 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to .dll als Interface????????? on Thu, 18 May 2006 14:52:08 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe eine generelle Frage zu einer DLL.</p>
<p>Kann ich eine DLL als Interface zwischen zwei laufenden Programmen benutzten?</p>
<p>Geht es das beide Programme gleichzeitig auf die DLL zugreifem und aus verschieden Funktionen lesen, bzw. in sie hineinschreiben?</p>
<p><strong>Beispiel:</strong></p>
<p>Ich habe zwei Programme:<br />
Prog1<br />
Prog2</p>
<p>und zwei Funktionen die sich in der DLL befinden:<br />
funk1<br />
funk2</p>
<p>Scenario:<br />
Prog1 schreibt einen Wert in funk1. Prog2 ließt aus funk1 und berechnet irgendwas, schreibt die Antwort dann in funk2.<br />
Daraufhin ließt Prog1 aus funk2.</p>
<p>-&gt; Ist so etwas in der Art möglich?</p>
<p>-&gt; Kann man eine DLL als Schnittstelle zwischen zwei Programmen benutzten?</p>
<p>-&gt; Wie könnte man so etwas realisieren?</p>
<p>-&gt; Geht das vielleicht mir &quot;fork&quot; und &quot;sleep&quot; (ich bin mir nicht ganz sicher ob ich dies zwei Begriffe schon einmal in diesem Zusammenhang gehört habe)</p>
<p>Wenn das nicht geht, wie könnte man so etwas ohne DLL machen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1060237</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1060237</guid><dc:creator><![CDATA[gramboler]]></dc:creator><pubDate>Thu, 18 May 2006 14:52:08 GMT</pubDate></item><item><title><![CDATA[Reply to .dll als Interface????????? on Thu, 18 May 2006 15:06:12 GMT]]></title><description><![CDATA[<p>Wenn du gut synchronisierst und shared Sections für die Variablen verwendest könnte das funktionieren.<br />
Sockets sollten imo aber sinnvoller sein</p>
<p>Greetz</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1060250</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1060250</guid><dc:creator><![CDATA[Manuel]]></dc:creator><pubDate>Thu, 18 May 2006 15:06:12 GMT</pubDate></item><item><title><![CDATA[Reply to .dll als Interface????????? on Thu, 18 May 2006 15:33:26 GMT]]></title><description><![CDATA[<p>Manuel schrieb:</p>
<blockquote>
<p>.<br />
Sockets sollten imo aber sinnvoller sein</p>
<p>Greetz</p>
</blockquote>
<p>Was heißt das????????</p>
<p>was sind &quot;Sockets&quot; und was ist &quot;imo&quot; ????????ß</p>
<p>imo = immer?????????ßß</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1060263</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1060263</guid><dc:creator><![CDATA[gramboler]]></dc:creator><pubDate>Thu, 18 May 2006 15:33:26 GMT</pubDate></item><item><title><![CDATA[Reply to .dll als Interface????????? on Thu, 18 May 2006 16:25:35 GMT]]></title><description><![CDATA[<p>Für die verschiedenen Arten der Inter-Prozess-Kommunikatin siehe:<br />
<a href="http://msdn.microsoft.com/library/en-us/ipc/base/interprocess_communications.asp" rel="nofollow">http://msdn.microsoft.com/library/en-us/ipc/base/interprocess_communications.asp</a></p>
<p>Das schnellste ist Shared-Memory (bzw. Memory-Mapped-Files).<br />
Bei einer DLL kannst Du bestimmten Datenbreiche &quot;shared&quot; machen, was der gleiche Effekt ist wie Memory-Mapped-Files.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1060312</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1060312</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Thu, 18 May 2006 16:25:35 GMT</pubDate></item><item><title><![CDATA[Reply to .dll als Interface????????? on Thu, 18 May 2006 17:06:41 GMT]]></title><description><![CDATA[<p>IMO = in my opinion - meiner Meinung nach</p>
<p>.. und die Erklärungen der einzelnen Mechanismen kannst du der Seite von Jochen entnehmen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
<p>Greetz</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1060342</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1060342</guid><dc:creator><![CDATA[Manuel]]></dc:creator><pubDate>Thu, 18 May 2006 17:06:41 GMT</pubDate></item><item><title><![CDATA[Reply to .dll als Interface????????? on Thu, 18 May 2006 17:24:06 GMT]]></title><description><![CDATA[<p>Manuel schrieb:</p>
<blockquote>
<p>IMO = in my opinion - meiner Meinung nach</p>
</blockquote>
<p>Bescheidene Menschen sagen: IM<strong>H</strong>O <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1060360</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1060360</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Thu, 18 May 2006 17:24:06 GMT</pubDate></item><item><title><![CDATA[Reply to .dll als Interface????????? on Thu, 18 May 2006 18:24:38 GMT]]></title><description><![CDATA[<p>ok danke,...ich werde es mir einmal durchlesen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1060415</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1060415</guid><dc:creator><![CDATA[gramboler]]></dc:creator><pubDate>Thu, 18 May 2006 18:24:38 GMT</pubDate></item><item><title><![CDATA[Reply to .dll als Interface????????? on Thu, 18 May 2006 18:31:08 GMT]]></title><description><![CDATA[<p>Jochen Kalmbach schrieb:</p>
<blockquote>
<p>Manuel schrieb:</p>
<blockquote>
<p>IMO = in my opinion - meiner Meinung nach</p>
</blockquote>
<p>Bescheidene Menschen sagen: IM<strong>H</strong>O <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
</blockquote>
<p>Bescheidene Menschen ... Wer sagt, dass ich zu denen gehöre? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
<p>Nee. Du hast Recht (wie (leider ;)) viel zu oft ^^). Bin aber meist zu faul den Buchstaben zu schreiben.</p>
<p>Greetz <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1060419</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1060419</guid><dc:creator><![CDATA[Manuel]]></dc:creator><pubDate>Thu, 18 May 2006 18:31:08 GMT</pubDate></item><item><title><![CDATA[Reply to .dll als Interface????????? on Thu, 18 May 2006 18:35:25 GMT]]></title><description><![CDATA[<p><strong>HEY!!!!!!!!</strong></p>
<p>Zurück zu dem THEMA,.........ich schlage for IHR richtet ein Thread zum Thema &quot;IMO&quot; ein.</p>
<p>Hier aber sollte es um eine DLL gehen!!!!!!!!</p>
<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1060423</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1060423</guid><dc:creator><![CDATA[gramboler]]></dc:creator><pubDate>Thu, 18 May 2006 18:35:25 GMT</pubDate></item><item><title><![CDATA[Reply to .dll als Interface????????? on Thu, 18 May 2006 18:48:37 GMT]]></title><description><![CDATA[<p>Was für Fragen sind denn noch offen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1060434</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1060434</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Thu, 18 May 2006 18:48:37 GMT</pubDate></item><item><title><![CDATA[Reply to .dll als Interface????????? on Thu, 18 May 2006 18:52:02 GMT]]></title><description><![CDATA[<p>die werden schon noch kommen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
<p>schließlich muss ich mich erst einmal durch alles durcharbeiten. Aber jetzt werde ich ein bierchen trinken gehen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
<p>aaaaaaaaah apopo Frage,.........was hat es mit fork und sleep auf sich? Was ist das?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1060437</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1060437</guid><dc:creator><![CDATA[gramboler]]></dc:creator><pubDate>Thu, 18 May 2006 18:52:02 GMT</pubDate></item><item><title><![CDATA[Reply to .dll als Interface????????? on Thu, 18 May 2006 19:17:37 GMT]]></title><description><![CDATA[<p>gramboler schrieb:</p>
<blockquote>
<p>was hat es mit fork und sleep auf sich?</p>
</blockquote>
<p>fork gibt es nur bei diversen *nixen, nicht aber bei Windows (damals kannten die noch keine Threads und haben IMHO etwas rumgepfuscht).<br />
sleep wartet einfach die angegebene Zeit.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1060451</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1060451</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Thu, 18 May 2006 19:17:37 GMT</pubDate></item><item><title><![CDATA[Reply to .dll als Interface????????? on Thu, 18 May 2006 22:53:43 GMT]]></title><description><![CDATA[<p>Jochen Kalmbach schrieb:</p>
<blockquote>
<p>Das schnellste ist Shared-Memory (bzw. Memory-Mapped-Files).<br />
Bei einer DLL kannst Du bestimmten Datenbreiche &quot;shared&quot; machen, was der gleiche Effekt ist wie Memory-Mapped-Files.</p>
</blockquote>
<p>Um Himmels Willen! Shared Memory ist das personifizierte <strong>Böse</strong>, da es sich nicht über eine ACL schützen lässt. Das kannst Du doch mit File Mapping nicht vergleichen.</p>
<p>Wer Shared Memory benutzt, macht sich auch die Hose mit der Kneifzange zu!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1060536</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1060536</guid><dc:creator><![CDATA[Gästchen]]></dc:creator><pubDate>Thu, 18 May 2006 22:53:43 GMT</pubDate></item><item><title><![CDATA[Reply to .dll als Interface????????? on Thu, 18 May 2006 22:56:55 GMT]]></title><description><![CDATA[<p>Jochen Kalmbach schrieb:</p>
<blockquote>
<p>Bescheidene Menschen sagen: IM<strong>H</strong>O <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
</blockquote>
<p>Das machen allenfalls Menschen mit Komplexen. Entweder habe ich eine Meinung oder ich habe sie nicht, Bescheidenheit hat da absolut nichts zu suchen. IMO.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1060538</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1060538</guid><dc:creator><![CDATA[Gästchen]]></dc:creator><pubDate>Thu, 18 May 2006 22:56:55 GMT</pubDate></item><item><title><![CDATA[Reply to .dll als Interface????????? on Fri, 19 May 2006 06:07:16 GMT]]></title><description><![CDATA[<p>Gästchen schrieb:</p>
<blockquote>
<p>Um Himmels Willen! Shared Memory ist das personifizierte <strong>Böse</strong>, da es sich nicht über eine ACL schützen lässt. Das kannst Du doch mit File Mapping nicht vergleichen.</p>
</blockquote>
<p>Was ist denn der Unterschied zwischen &quot;Shared Memory&quot; und &quot;Memory Mapped Files&quot;?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1060572</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1060572</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Fri, 19 May 2006 06:07:16 GMT</pubDate></item><item><title><![CDATA[Reply to .dll als Interface????????? on Fri, 19 May 2006 08:34:41 GMT]]></title><description><![CDATA[<p>Jochen Kalmbach schrieb:</p>
<blockquote>
<p>Was ist denn der Unterschied zwischen &quot;Shared Memory&quot; und &quot;Memory Mapped Files&quot;?</p>
</blockquote>
<p>Du willst mich verscheissern, gell? Außerdem habe ich den schlimmsten Unterschied zwischen <em>#pragma data_seg</em> und dem echten Kernel Objekt bereits herausgestellt: Letzteres lässt sich mit einer ACL schützen.</p>
<p>Und jetzt zeigst Du mir bitte, wie Du verhinderst, daß auf ein <em>#pragma data_seg</em> absolut <strong>jeder</strong> <strong>uneingeschränkten</strong> Zugriff bekommt.</p>
<p>Und ja, es ist mir bekannt, daß das #pragma allein nicht reicht und das ich dem Linker noch weitere Anweisung zu geben habe.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1060690</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1060690</guid><dc:creator><![CDATA[Gästchen]]></dc:creator><pubDate>Fri, 19 May 2006 08:34:41 GMT</pubDate></item><item><title><![CDATA[Reply to .dll als Interface????????? on Fri, 19 May 2006 08:42:53 GMT]]></title><description><![CDATA[<p>Vielleicht haben wir auch nur aneinander verbeigeredet... bzw. ich habe mich nicht eindeutig ausgedrückt...<br />
Ich empfehle prinzipiell für schnelle Dinge immer Memory-Mapped-Files (welches in der Doku auch &quot;Shared memmory&quot; genannt wird, siehe<br />
<a href="http://msdn.microsoft.com/library/en-us/fileio/fs/creating_named_shared_memory.asp" rel="nofollow">http://msdn.microsoft.com/library/en-us/fileio/fs/creating_named_shared_memory.asp</a><br />
)<br />
Das #pragma... hab ich nur noch so erwähnt... will ich aber nicht empfehlen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1060701</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1060701</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Fri, 19 May 2006 08:42:53 GMT</pubDate></item><item><title><![CDATA[Reply to .dll als Interface????????? on Fri, 19 May 2006 08:58:51 GMT]]></title><description><![CDATA[<p>Jochen Kalmbach schrieb:</p>
<blockquote>
<p>Das #pragma... hab ich nur noch so erwähnt... will ich aber nicht empfehlen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
</blockquote>
<p>Dann bin ich beruhigt. Denn nachdem Du &quot;Bei einer DLL kannst Du bestimmten Datenbreiche &quot;shared&quot; machen, was der gleiche Effekt ist wie Memory-Mapped-Files.&quot; schrubst, bin ich beinahe umgefallen. Das ist nämlich <strong>nicht</strong> der gleiche Effekt.</p>
<p>Aber wie gesagt, ich habe mich ja wieder beruhigt. <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>
]]></description><link>https://www.c-plusplus.net/forum/post/1060720</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1060720</guid><dc:creator><![CDATA[Gästchen]]></dc:creator><pubDate>Fri, 19 May 2006 08:58:51 GMT</pubDate></item></channel></rss>