<?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[Shared strukturen]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe eine vorgegebene Struktur von Microsoft.<br />
Diese enthällt einige Flags, einige Integer.</p>
<p>In meiner DLL mache ich im pragma shared also:</p>
<p>#pragma data_seg (&quot;shared&quot;)<br />
DIEFFECT variable;<br />
#pragma data_seg()<br />
#pragma comment(linker,&quot;/SECTION:shared,RWS&quot;)</p>
<p>und &quot;könnte&quot; nun von allen Programmen darauf zurückgreifen.<br />
Der Kompiler akzeptiert dies, das Programm stürzt nicht ab.<br />
Geht aber nicht. Ich vermute, das sie nicht iniziallisiert ist<br />
wie z.B.</p>
<p>int variable =0 ;</p>
<p>Wie kann ich nun diese Struktur like Zeromemory initialisieren ?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/85527/shared-strukturen</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Apr 2026 00:54:33 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/85527.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 09 Sep 2004 16:11:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Shared strukturen on Thu, 09 Sep 2004 16:11:51 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe eine vorgegebene Struktur von Microsoft.<br />
Diese enthällt einige Flags, einige Integer.</p>
<p>In meiner DLL mache ich im pragma shared also:</p>
<p>#pragma data_seg (&quot;shared&quot;)<br />
DIEFFECT variable;<br />
#pragma data_seg()<br />
#pragma comment(linker,&quot;/SECTION:shared,RWS&quot;)</p>
<p>und &quot;könnte&quot; nun von allen Programmen darauf zurückgreifen.<br />
Der Kompiler akzeptiert dies, das Programm stürzt nicht ab.<br />
Geht aber nicht. Ich vermute, das sie nicht iniziallisiert ist<br />
wie z.B.</p>
<p>int variable =0 ;</p>
<p>Wie kann ich nun diese Struktur like Zeromemory initialisieren ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/603520</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/603520</guid><dc:creator><![CDATA[thenoname]]></dc:creator><pubDate>Thu, 09 Sep 2004 16:11:51 GMT</pubDate></item><item><title><![CDATA[Reply to Shared strukturen on Thu, 09 Sep 2004 16:30:06 GMT]]></title><description><![CDATA[<p>ok habs gelösst ...</p>
<p>musste in nicht initiallisierten Speicher:</p>
<p>#pragma bss_seg (&quot;shared&quot;)<br />
DIEFFECT variable;<br />
#pragma data_seg()<br />
#pragma comment(linker,&quot;/SECTION:shared,RWS&quot;)</p>
<p>statt data_seg</p>
<p>cu</p>
]]></description><link>https://www.c-plusplus.net/forum/post/603536</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/603536</guid><dc:creator><![CDATA[thenoname]]></dc:creator><pubDate>Thu, 09 Sep 2004 16:30:06 GMT</pubDate></item><item><title><![CDATA[Reply to Shared strukturen on Fri, 10 Sep 2004 12:45:04 GMT]]></title><description><![CDATA[<p>Ansonsten:</p>
<pre><code class="language-cpp">DIEFFECT variable = {0};
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/603980</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/603980</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Fri, 10 Sep 2004 12:45:04 GMT</pubDate></item></channel></rss>