<?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[problem mit registry]]></title><description><![CDATA[<p>Ich will einen Wert aus der Registry lesen, aber irgendwas läuft da falsch...</p>
<pre><code>HKEY t_bufkey;

	HKEY h_hKey = HKEY_LOCAL_MACHINE;

	LPCTSTR h_subkey = &quot;SOFTWARE\\Test&quot;;

	LPCTSTR key_name = &quot;InstTime&quot;;

	unsigned char t_data[20] = {&quot;&quot;};	
	unsigned long t_data_size = sizeof(t_data);

	RegOpenKeyEx(h_hKey, h_subkey, 0, KEY_READ, &amp;t_bufkey);
	int t_err_code = RegQueryValueEx(t_bufkey, key_name, NULL, NULL, t_data, &amp;t_data_size);
	RegCloseKey(t_bufkey);

	cout &lt;&lt; t_data &lt;&lt; endl &lt;&lt; t_err_code &lt;&lt; endl;
</code></pre>
<p>woran liegt's? t_data ist imme leer, aber der schlüssel ist ganz sicher vorhanden <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/topic/100656/problem-mit-registry</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 14:42:29 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/100656.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 09 Feb 2005 10:37:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to problem mit registry on Wed, 09 Feb 2005 10:37:31 GMT]]></title><description><![CDATA[<p>Ich will einen Wert aus der Registry lesen, aber irgendwas läuft da falsch...</p>
<pre><code>HKEY t_bufkey;

	HKEY h_hKey = HKEY_LOCAL_MACHINE;

	LPCTSTR h_subkey = &quot;SOFTWARE\\Test&quot;;

	LPCTSTR key_name = &quot;InstTime&quot;;

	unsigned char t_data[20] = {&quot;&quot;};	
	unsigned long t_data_size = sizeof(t_data);

	RegOpenKeyEx(h_hKey, h_subkey, 0, KEY_READ, &amp;t_bufkey);
	int t_err_code = RegQueryValueEx(t_bufkey, key_name, NULL, NULL, t_data, &amp;t_data_size);
	RegCloseKey(t_bufkey);

	cout &lt;&lt; t_data &lt;&lt; endl &lt;&lt; t_err_code &lt;&lt; endl;
</code></pre>
<p>woran liegt's? t_data ist imme leer, aber der schlüssel ist ganz sicher vorhanden <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/718442</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/718442</guid><dc:creator><![CDATA[labakopp]]></dc:creator><pubDate>Wed, 09 Feb 2005 10:37:31 GMT</pubDate></item><item><title><![CDATA[Reply to problem mit registry on Wed, 09 Feb 2005 10:40:46 GMT]]></title><description><![CDATA[<p>rückgabewerte? getlasterror()? userrechte?</p>
<p><strong>falsches forum --&gt; winapi</strong></p>
]]></description><link>https://www.c-plusplus.net/forum/post/718451</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/718451</guid><dc:creator><![CDATA[miller_m]]></dc:creator><pubDate>Wed, 09 Feb 2005 10:40:46 GMT</pubDate></item><item><title><![CDATA[Reply to problem mit registry on Wed, 09 Feb 2005 11:21:48 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/718477</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/718477</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Wed, 09 Feb 2005 11:21:48 GMT</pubDate></item></channel></rss>