<?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[Registry Eintrag abfragen]]></title><description><![CDATA[<pre><code class="language-cpp">String a=&quot;test1&quot;, b=&quot;test2&quot;, c=&quot;test3&quot;,registry-eintrag1, registry-eintrag2, registry-eintrag3;

if (registry-eintrag1=a) Application-&gt;MessageBox(&quot;Info&quot;,&quot;jo&quot;, 32);
else Application-&gt;MessageBox(&quot;Info&quot;,&quot;noe&quot;, 32);
if (registry-eintrag2=b) Application-&gt;MessageBox(&quot;Info&quot;,&quot;jo&quot;, 32);
else Application-&gt;MessageBox(&quot;Info&quot;,&quot;noe&quot;, 32);
if (registry-eintrag3=c) Application-&gt;MessageBox(&quot;Info&quot;,&quot;jo&quot;, 32);
else Application-&gt;MessageBox(&quot;Info&quot;,&quot;noe&quot;, 32);
</code></pre>
<p>so soll das in etwa aussehen, nur weiß ich nicht wie ich die registry nach den einträgen abfrag und die dann in nen String bekomm, falls ich es nicht schon in nem String geliefert bekomm.</p>
<p>hoffe ihr könnt mir weiterhelfen.</p>
<p>greez</p>
<p>Weedy</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/133070/registry-eintrag-abfragen</link><generator>RSS for Node</generator><lastBuildDate>Fri, 31 Jul 2026 11:52:34 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/133070.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 15 Jan 2006 10:44:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Registry Eintrag abfragen on Sun, 15 Jan 2006 10:44:49 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">String a=&quot;test1&quot;, b=&quot;test2&quot;, c=&quot;test3&quot;,registry-eintrag1, registry-eintrag2, registry-eintrag3;

if (registry-eintrag1=a) Application-&gt;MessageBox(&quot;Info&quot;,&quot;jo&quot;, 32);
else Application-&gt;MessageBox(&quot;Info&quot;,&quot;noe&quot;, 32);
if (registry-eintrag2=b) Application-&gt;MessageBox(&quot;Info&quot;,&quot;jo&quot;, 32);
else Application-&gt;MessageBox(&quot;Info&quot;,&quot;noe&quot;, 32);
if (registry-eintrag3=c) Application-&gt;MessageBox(&quot;Info&quot;,&quot;jo&quot;, 32);
else Application-&gt;MessageBox(&quot;Info&quot;,&quot;noe&quot;, 32);
</code></pre>
<p>so soll das in etwa aussehen, nur weiß ich nicht wie ich die registry nach den einträgen abfrag und die dann in nen String bekomm, falls ich es nicht schon in nem String geliefert bekomm.</p>
<p>hoffe ihr könnt mir weiterhelfen.</p>
<p>greez</p>
<p>Weedy</p>
]]></description><link>https://www.c-plusplus.net/forum/post/966898</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/966898</guid><dc:creator><![CDATA[weedhead87]]></dc:creator><pubDate>Sun, 15 Jan 2006 10:44:49 GMT</pubDate></item><item><title><![CDATA[Reply to Registry Eintrag abfragen on Sun, 15 Jan 2006 10:47:00 GMT]]></title><description><![CDATA[<p>TRegistry?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/966900</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/966900</guid><dc:creator><![CDATA[HEZ]]></dc:creator><pubDate>Sun, 15 Jan 2006 10:47:00 GMT</pubDate></item><item><title><![CDATA[Reply to Registry Eintrag abfragen on Sun, 15 Jan 2006 10:50:23 GMT]]></title><description><![CDATA[<p>hab ich mir schon angeschaut, versteh aber leider net wie ich das umsetzen soll...</p>
<p>(&lt;== volln00b *g*)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/966905</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/966905</guid><dc:creator><![CDATA[weedhead87]]></dc:creator><pubDate>Sun, 15 Jan 2006 10:50:23 GMT</pubDate></item><item><title><![CDATA[Reply to Registry Eintrag abfragen on Sun, 15 Jan 2006 11:02:43 GMT]]></title><description><![CDATA[<p><a href="http://www.marquardtnet.info/cecke/quickies.1/1_quicky_09.html" rel="nofollow">http://www.marquardtnet.info/cecke/quickies.1/1_quicky_09.html</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/966910</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/966910</guid><dc:creator><![CDATA[Christian211]]></dc:creator><pubDate>Sun, 15 Jan 2006 11:02:43 GMT</pubDate></item><item><title><![CDATA[Reply to Registry Eintrag abfragen on Sun, 15 Jan 2006 11:55:13 GMT]]></title><description><![CDATA[<p>Ich hab bei &quot;HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\{90110407-6000-11D3-8CFE-0150048383C9}&quot; unter dem namen &quot;DisplayName&quot; den Wert &quot;Microsoft Office Professional Edition 2003&quot; stehen.</p>
<pre><code class="language-cpp">void __fastcall TForm1::Button1Click(TObject *Sender)
{
//Eine neues TRegistry Object angelegen
TRegistry&amp; regkey=*new TRegistry();

//Wenn abweichend von HKEY_CURRENT_USER den RootKey setzen (das ist ein INT-Wert!!):
regkey.RootKey=HKEY_LOCAL_MACHINE;

//Den gewünschten Schlüssel vorgeben
//hier jetzt false (nur lesen wenn auch da)
bool keygood=regkey.OpenKey(&quot;\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\{90110407-6000-11D3-8CFE-0150048383C9}&quot;,false);

//Wenn ein gültiger Schlüssel da ist
if(keygood)
	{

 //Wenn unser Wert da ist
	 if(regkey.ValueExists(&quot;DisplayName&quot;))
		{

 	//wird er in die Variable bo (bool) gelesen
	    //   bool bo=regkey.ReadBool(&quot;DisplayName&quot;);
		}
String st;
 //Wenn unser Wert da ist erhält die
	//Variable st den Inhalt ansonsten &quot;kein Wert&quot;

regkey.ValueExists(&quot;Microsoft Office Professional Edition 2003&quot;)?st=regkey.
            ReadString(&quot;DisplayName&quot;):st=&quot;kein Wert&quot;;
            Edit1-&gt;Text=st;
            Label1-&gt;Caption=st;
	}
//Registry schliessen
regkey.CloseKey();

//Objekt löschen
delete &amp;regkey;
}
</code></pre>
<p>So hab ichs gemacht, bekomme aber immer &quot;kein Wert&quot; als ausgabe, möchte aber den Wert von &quot;DisplayName&quot; also &quot;Microsoft Office Professional Edition 2003&quot; ausgegeben haben, was hab ich falsch gemacht ?</p>
<p>greez</p>
<p>Weedy</p>
]]></description><link>https://www.c-plusplus.net/forum/post/966960</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/966960</guid><dc:creator><![CDATA[weedhead87]]></dc:creator><pubDate>Sun, 15 Jan 2006 11:55:13 GMT</pubDate></item><item><title><![CDATA[Reply to Registry Eintrag abfragen on Sun, 15 Jan 2006 12:15:34 GMT]]></title><description><![CDATA[<p>Lies dir die Seite nochmals durch und versuche zu verstehen:</p>
<blockquote>
<p>//Wenn unser Wert da ist<br />
if(regkey.ValueExists(&quot;DisplayName&quot;))<br />
{</p>
<p>//wird er in die Variable bo (bool) gelesen<br />
// bool bo=regkey.ReadBool(&quot;DisplayName&quot;);<br />
}</p>
</blockquote>
<p>Wozu das? Da sind 2 Beispiele einer für bool einer für String. Brauchst du bool?</p>
<pre><code class="language-cpp">regkey.ValueExists(&quot;Microsoft Office Professional Edition 2003&quot;)?st=regkey.
            ReadString(&quot;DisplayName&quot;):st=&quot;kein Wert&quot;;
</code></pre>
<p>Schau nochmal nach: Warum prüfst du, ob ein etwas da ist, um dann etwas anderes zu lesen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/966973</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/966973</guid><dc:creator><![CDATA[Christian211]]></dc:creator><pubDate>Sun, 15 Jan 2006 12:15:34 GMT</pubDate></item><item><title><![CDATA[Reply to Registry Eintrag abfragen on Sun, 15 Jan 2006 13:19:28 GMT]]></title><description><![CDATA[<p>autsch, ok ich hab net verstanden gehabt wie man das mit dem namen, wert und verzeihcnis machen muss, jetzt funktionierts...</p>
<p>THX 4 HELP</p>
<p>Weedy</p>
]]></description><link>https://www.c-plusplus.net/forum/post/967022</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/967022</guid><dc:creator><![CDATA[weedhead]]></dc:creator><pubDate>Sun, 15 Jan 2006 13:19:28 GMT</pubDate></item></channel></rss>