<?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[TRegistry Problem]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich versuche gerade verzweifelt einen String aus der Reg zu holen...<br />
Also bisher (meine) ich hat es mit diesem Code immer ganz gut geklappt, nur<br />
immo will er nicht so wie ich.</p>
<pre><code class="language-cpp">TStringList *StringList = new TStringList;
  TRegistry *Registry     = new TRegistry;
  Registry-&gt;RootKey       = HKEY_LOCAL_MACHINE;

  if ( Registry-&gt;OpenKey( &quot;SOFTWARE\\Fraps2&quot;, false ) )
	ShowMessage( Registry-&gt;ReadString(&quot;Screenshot Directory&quot;) );

  delete Registry;
  delete StringList;
</code></pre>
<p>Ich vermute gerade das es an Vista liegt (Rechte) Nur auch wenn ich es als<br />
Admin ausführe bleibe ich erfolglos. Kann es sein das sich doch ein Fehler<br />
eingeschlichen hat? Ich habe leider gerade kein XP zur hand um dort einmal<br />
zu testen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/topic/204988/tregistry-problem</link><generator>RSS for Node</generator><lastBuildDate>Wed, 19 Aug 2026 16:14:03 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/204988.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 09 Feb 2008 01:21:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to TRegistry Problem on Sat, 09 Feb 2008 01:21:08 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich versuche gerade verzweifelt einen String aus der Reg zu holen...<br />
Also bisher (meine) ich hat es mit diesem Code immer ganz gut geklappt, nur<br />
immo will er nicht so wie ich.</p>
<pre><code class="language-cpp">TStringList *StringList = new TStringList;
  TRegistry *Registry     = new TRegistry;
  Registry-&gt;RootKey       = HKEY_LOCAL_MACHINE;

  if ( Registry-&gt;OpenKey( &quot;SOFTWARE\\Fraps2&quot;, false ) )
	ShowMessage( Registry-&gt;ReadString(&quot;Screenshot Directory&quot;) );

  delete Registry;
  delete StringList;
</code></pre>
<p>Ich vermute gerade das es an Vista liegt (Rechte) Nur auch wenn ich es als<br />
Admin ausführe bleibe ich erfolglos. Kann es sein das sich doch ein Fehler<br />
eingeschlichen hat? Ich habe leider gerade kein XP zur hand um dort einmal<br />
zu testen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1452364</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1452364</guid><dc:creator><![CDATA[Slashi]]></dc:creator><pubDate>Sat, 09 Feb 2008 01:21:08 GMT</pubDate></item><item><title><![CDATA[Reply to TRegistry Problem on Sat, 09 Feb 2008 08:50:28 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Soviel ich weiß ist unter Vista der Rootkey LOCAL_MACHINE nicht mehr ohne weiteres zugänglich, auch für den Admin. Alle Schlüssel sollten deshalb in CURRENT_USER abgelegt werden.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1452405</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1452405</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Sat, 09 Feb 2008 08:50:28 GMT</pubDate></item><item><title><![CDATA[Reply to TRegistry Problem on Sat, 09 Feb 2008 10:54:22 GMT]]></title><description><![CDATA[<p>Wenn es nur ums lesen geht kannst du auch mal:</p>
<pre><code class="language-cpp">TRegistry *ReadReg = new TRegistry(KEY_READ);
ReadReg-&gt;RootKey = HKEY_LOCAL_MACHINE;
ReadReg-&gt;OpenKeyReadOnly(&quot;SOFTWARE\\Fraps2&quot;);
AnsiString as = ReadReg-&gt;ReadString(&quot;Screenshot Directory&quot;);

delete ReadReg
</code></pre>
<p>ausprobieren.<br />
Sollte eigentlich gehen, da unsere Software ihren Installationspfad auch in LocalMachine hat und auch unter Vista läuft.</p>
<p>mfg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1452451</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1452451</guid><dc:creator><![CDATA[Rashnok666]]></dc:creator><pubDate>Sat, 09 Feb 2008 10:54:22 GMT</pubDate></item></channel></rss>