<?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[Programmübergreifende Variable mit volatile?]]></title><description><![CDATA[<p>Tach,<br />
ist es eigentlich möglich mittels volatile eine Variable in einem anderen Programm verfügbar zu machen? Die Beispiele in der MSDN beziehen sich immer nur auf mehrere Threads im selben Programm. Ich habe von Threads relativ wenig Ahnung, aber müsste es nicht eigentlich möglich sein, auf eine volatile Variable zuzugreifen, wenn man in seinem Programm auf den entsprechenden Thread im anderen Programm connected?<br />
Wenn ja, wie würde man das realisieren?</p>
<p>thx &amp; mfg Kenrik</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/160960/programmübergreifende-variable-mit-volatile</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Jul 2026 16:57:59 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/160960.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 01 Oct 2006 18:38:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Programmübergreifende Variable mit volatile? on Sun, 01 Oct 2006 18:38:52 GMT]]></title><description><![CDATA[<p>Tach,<br />
ist es eigentlich möglich mittels volatile eine Variable in einem anderen Programm verfügbar zu machen? Die Beispiele in der MSDN beziehen sich immer nur auf mehrere Threads im selben Programm. Ich habe von Threads relativ wenig Ahnung, aber müsste es nicht eigentlich möglich sein, auf eine volatile Variable zuzugreifen, wenn man in seinem Programm auf den entsprechenden Thread im anderen Programm connected?<br />
Wenn ja, wie würde man das realisieren?</p>
<p>thx &amp; mfg Kenrik</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1147569</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1147569</guid><dc:creator><![CDATA[[[global:former_user]]]]></dc:creator><pubDate>Sun, 01 Oct 2006 18:38:52 GMT</pubDate></item><item><title><![CDATA[Reply to Programmübergreifende Variable mit volatile? on Sun, 01 Oct 2006 18:55:35 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>nein, für sowas reichen reine C++ Mittel niocht mehr aus, weil Windows standardmäßig den Zugriff von einem Programm auf den Speicherbereich andere Programme verhindert (auch Speicherzugriffs-Schutzverletzung genannt). Für sowas brauchst du Sachen wie <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/secauthn/security/createsharedmemory.asp" rel="nofollow">Shared Memory</a>.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1147575</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1147575</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Sun, 01 Oct 2006 18:55:35 GMT</pubDate></item><item><title><![CDATA[Reply to Programmübergreifende Variable mit volatile? on Sun, 01 Oct 2006 19:15:46 GMT]]></title><description><![CDATA[<p>Aja, interessant. Danke, werd mich damit beschäftigen.</p>
<p>mfg Kenrik</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1147586</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1147586</guid><dc:creator><![CDATA[[[global:former_user]]]]></dc:creator><pubDate>Sun, 01 Oct 2006 19:15:46 GMT</pubDate></item><item><title><![CDATA[Reply to Programmübergreifende Variable mit volatile? on Mon, 02 Oct 2006 08:48:42 GMT]]></title><description><![CDATA[<p>akari schrieb:</p>
<blockquote>
<p>...weil Windows standardmäßig den Zugriff von einem Programm auf den Speicherbereich andere Programme verhindert ...</p>
</blockquote>
<p>... und weil Betriebssyteme allgemein dafür sorgen, dass jedes Programm seinen eigenen Speicherbereich bekommt. Und &quot;eigen&quot; bedeutet halt auch: &quot;Kann/darf kein anderer reinschauen&quot;...</p>
<p>Gruß,</p>
<p>Simon2.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1147773</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1147773</guid><dc:creator><![CDATA[Simon2]]></dc:creator><pubDate>Mon, 02 Oct 2006 08:48:42 GMT</pubDate></item><item><title><![CDATA[Reply to Programmübergreifende Variable mit volatile? on Mon, 02 Oct 2006 08:52:09 GMT]]></title><description><![CDATA[<p>Simon2 schrieb:</p>
<blockquote>
<p>... und weil Betriebssyteme allgemein dafür sorgen, dass jedes Programm seinen eigenen Speicherbereich bekommt.</p>
</blockquote>
<p>nicht unbedingt. getrennte adressräume, speicherschutzmechanismen o.ä. gehören nicht unbedingt dazu, damit sich etwas 'betriebssystem' nennen darf <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/1147776</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1147776</guid><dc:creator><![CDATA[net 0]]></dc:creator><pubDate>Mon, 02 Oct 2006 08:52:09 GMT</pubDate></item><item><title><![CDATA[Reply to Programmübergreifende Variable mit volatile? on Mon, 02 Oct 2006 09:10:42 GMT]]></title><description><![CDATA[<p>net schrieb:</p>
<blockquote>
<p>Simon2 schrieb:</p>
<blockquote>
<p>... und weil Betriebssyteme allgemein dafür sorgen, dass jedes Programm seinen eigenen Speicherbereich bekommt.</p>
</blockquote>
<p>nicht unbedingt. getrennte adressräume, speicherschutzmechanismen o.ä. gehören nicht unbedingt dazu, damit sich etwas 'betriebssystem' nennen darf <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>Habe ich &quot;unbedingt&quot; geschrieben ? :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>
<p>Gruß,</p>
<p>Simon2.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1147790</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1147790</guid><dc:creator><![CDATA[Simon2]]></dc:creator><pubDate>Mon, 02 Oct 2006 09:10:42 GMT</pubDate></item><item><title><![CDATA[Reply to Programmübergreifende Variable mit volatile? on Mon, 02 Oct 2006 11:56:23 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/1147927</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1147927</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Mon, 02 Oct 2006 11:56:23 GMT</pubDate></item><item><title><![CDATA[Reply to Programmübergreifende Variable mit volatile? on Mon, 02 Oct 2006 12:00:25 GMT]]></title><description><![CDATA[<p>Eine (unschöne) Möglichkeit ist:</p>
<pre><code class="language-cpp">#pragma data_seg(&quot;.MYSEC&quot;)
int iSharedVar = 0;
#pragma data_seg()
#pragma comment(linker, &quot;/SECTION:.MYSEC,RWS&quot;)
</code></pre>
<p>Siehe auch:<br />
<a href="http://msdn2.microsoft.com/en-us/library/h90dkhs0.aspx" rel="nofollow">http://msdn2.microsoft.com/en-us/library/h90dkhs0.aspx</a><br />
<a href="http://support.microsoft.com/?id=100634" rel="nofollow">http://support.microsoft.com/?id=100634</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1147933</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1147933</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Mon, 02 Oct 2006 12:00:25 GMT</pubDate></item><item><title><![CDATA[Reply to Programmübergreifende Variable mit volatile? on Mon, 02 Oct 2006 12:13:33 GMT]]></title><description><![CDATA[<p>Jochen Kalmbach schrieb:</p>
<blockquote>
<p>Eine (unschöne) Möglichkeit ist:</p>
<pre><code class="language-cpp">#pragma data_seg(&quot;.MYSEC&quot;)
int iSharedVar = 0;
#pragma data_seg()
#pragma comment(linker, &quot;/SECTION:.MYSEC,RWS&quot;)
</code></pre>
</blockquote>
<p>warum ist das unschön?<br />
es ist doch viel einfacher, als selber mit sections rumzufummeln...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1147942</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1147942</guid><dc:creator><![CDATA[net 0]]></dc:creator><pubDate>Mon, 02 Oct 2006 12:13:33 GMT</pubDate></item><item><title><![CDATA[Reply to Programmübergreifende Variable mit volatile? on Mon, 02 Oct 2006 12:43:52 GMT]]></title><description><![CDATA[<p>net schrieb:</p>
<blockquote>
<p>warum ist das unschön?</p>
</blockquote>
<p>Der Grund fällt mir gerade nicht mehr ein... hab es aber so im &quot;Gefühl&quot;, dass es schlecht ist...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1147967</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1147967</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Mon, 02 Oct 2006 12:43:52 GMT</pubDate></item><item><title><![CDATA[Reply to Programmübergreifende Variable mit volatile? on Mon, 02 Oct 2006 12:52:26 GMT]]></title><description><![CDATA[<p>Solche Bereiche lassen sich <strong>nicht</strong> mit einer ACL schützen. Deswegen ist das nicht nur unschön, sondern ein fieser Schlag unter den Gürtel!</p>
<p>Für soetwas kann man beispielsweise FileMapping schön verwenden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1147977</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1147977</guid><dc:creator><![CDATA[Gästchen]]></dc:creator><pubDate>Mon, 02 Oct 2006 12:52:26 GMT</pubDate></item><item><title><![CDATA[Reply to Programmübergreifende Variable mit volatile? on Mon, 02 Oct 2006 12:53:32 GMT]]></title><description><![CDATA[<p>Gästchen schrieb:</p>
<blockquote>
<p>Solche Bereiche lassen sich <strong>nicht</strong> mit einer ACL schützen. Deswegen ist das nicht nur unschön, sondern ein fieser Schlag unter den Gürtel!</p>
</blockquote>
<p>Genau das wars! (Man bin ich vergesslich...)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1147978</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1147978</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Mon, 02 Oct 2006 12:53:32 GMT</pubDate></item><item><title><![CDATA[Reply to Programmübergreifende Variable mit volatile? on Mon, 02 Oct 2006 14:54:48 GMT]]></title><description><![CDATA[<p>Gästchen schrieb:</p>
<blockquote>
<p>Solche Bereiche lassen sich <strong>nicht</strong> mit einer ACL schützen.</p>
</blockquote>
<p>naja, ein klitzekleiner nachteil. ist auch nur wichtig bei irgendwelchen serverprozessen, diensten o.ä. sonst braucht man so'nen schutz ja kaum...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1148055</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1148055</guid><dc:creator><![CDATA[net 0]]></dc:creator><pubDate>Mon, 02 Oct 2006 14:54:48 GMT</pubDate></item><item><title><![CDATA[Reply to Programmübergreifende Variable mit volatile? on Mon, 02 Oct 2006 15:54:44 GMT]]></title><description><![CDATA[<p>net schrieb:</p>
<blockquote>
<p>naja, ein klitzekleiner nachteil.</p>
</blockquote>
<p>Absolutes KO-Kriterium, nicht &quot;klitzekleiner nachteil&quot;.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1148086</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1148086</guid><dc:creator><![CDATA[Gästchen]]></dc:creator><pubDate>Mon, 02 Oct 2006 15:54:44 GMT</pubDate></item><item><title><![CDATA[Reply to Programmübergreifende Variable mit volatile? on Mon, 02 Oct 2006 16:04:43 GMT]]></title><description><![CDATA[<p>Gästchen schrieb:</p>
<blockquote>
<p>Absolutes KO-Kriterium</p>
</blockquote>
<p>quatsch!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1148094</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1148094</guid><dc:creator><![CDATA[net 0]]></dc:creator><pubDate>Mon, 02 Oct 2006 16:04:43 GMT</pubDate></item></channel></rss>