<?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[Environment Variable]]></title><description><![CDATA[<p>Hi Zusammen,</p>
<p>ich wollte mir ein Programm zusammenfriemeln, das nur dann &quot;Eintritt gewährt&quot;, wenn eine Environmentvariable auf einen bestimmten String gesetzt ist.<br />
Das dumme ist nur, dass das Programm die Environmentvariable mit 'getenv(&quot;MAGIC&quot;)' nur dann erkennt, wenn ich das Programm mit der Eingabeaufforderung starte, mit der ich auch die Environmentvariable gesetzt habe (mit set MAGIC=hallo). Was kann ich da machen ? Am liebsten würd ich eine Variable setzen, die dann erhalten bleibt, auch wenn ich die Dosbox schließe.<br />
Außerdem sollte diese env-Variable auch vom Programm erkannt werden, wenn ich es über den Explorer starte.<br />
Geht das ?</p>
<p>Schönen Gruß<br />
Xzibit</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/159164/environment-variable</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Jul 2026 10:00:45 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/159164.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 12 Sep 2006 15:23:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Environment Variable on Tue, 12 Sep 2006 15:23:54 GMT]]></title><description><![CDATA[<p>Hi Zusammen,</p>
<p>ich wollte mir ein Programm zusammenfriemeln, das nur dann &quot;Eintritt gewährt&quot;, wenn eine Environmentvariable auf einen bestimmten String gesetzt ist.<br />
Das dumme ist nur, dass das Programm die Environmentvariable mit 'getenv(&quot;MAGIC&quot;)' nur dann erkennt, wenn ich das Programm mit der Eingabeaufforderung starte, mit der ich auch die Environmentvariable gesetzt habe (mit set MAGIC=hallo). Was kann ich da machen ? Am liebsten würd ich eine Variable setzen, die dann erhalten bleibt, auch wenn ich die Dosbox schließe.<br />
Außerdem sollte diese env-Variable auch vom Programm erkannt werden, wenn ich es über den Explorer starte.<br />
Geht das ?</p>
<p>Schönen Gruß<br />
Xzibit</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1135987</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1135987</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Tue, 12 Sep 2006 15:23:54 GMT</pubDate></item><item><title><![CDATA[Reply to Environment Variable on Tue, 12 Sep 2006 15:48:02 GMT]]></title><description><![CDATA[<p>das geht, indem Du in der Registry unter folgendem Pfad mit RegEdit.EXE oder per Programm einen entsprechenden Eintrag machst:</p>
<p>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1135998</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1135998</guid><dc:creator><![CDATA[Uli]]></dc:creator><pubDate>Tue, 12 Sep 2006 15:48:02 GMT</pubDate></item><item><title><![CDATA[Reply to Environment Variable on Tue, 12 Sep 2006 18:36:59 GMT]]></title><description><![CDATA[<p>Jo ich hab das mal ausprobiert. Aber mit getenv bekomm ich da nix zrück.<br />
Der findet die Variable erst gar nicht. Und mit ner andren Func ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1136093</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1136093</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Tue, 12 Sep 2006 18:36:59 GMT</pubDate></item><item><title><![CDATA[Reply to Environment Variable on Tue, 12 Sep 2006 19:08:31 GMT]]></title><description><![CDATA[<p>Xzibit schrieb:</p>
<blockquote>
<p>Und mit ner andren Func ?</p>
</blockquote>
<p>Glaub du meinst <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/getenvironmentvariable.asp" rel="nofollow">GetEnvironmentVariable</a>.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1136110</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1136110</guid><dc:creator><![CDATA[CodeFinder]]></dc:creator><pubDate>Tue, 12 Sep 2006 19:08:31 GMT</pubDate></item></channel></rss>