<?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[In Registry schreiben?]]></title><description><![CDATA[<p>Wo liegt mein Fehler?</p>
<p>HKEY key;<br />
RegOpenKey(HKEY_LOCAL_MACHINE,&quot;SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce&quot;,&amp;key);</p>
<p>char cString[]=&quot;agentremover.exe&quot;;</p>
<p>RegSetValueEx(key,&quot;ISSRemover&quot;,0,REG_SZ,reinterpret_cast&lt; unsigned char* &gt;( cString ),strlen(cString)+1);</p>
<p>RegCloseKey(key);<br />
getch();</p>
<p>Er schreibt einfach nichts in die Registry<br />
Ich möchte nach einem Neustart einen exe starten.<br />
Wo ist mein Fehler?</p>
<p>Vielen dank</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/133259/in-registry-schreiben</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Jul 2026 17:27:31 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/133259.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 16 Jan 2006 14:13:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to In Registry schreiben? on Mon, 16 Jan 2006 14:13:52 GMT]]></title><description><![CDATA[<p>Wo liegt mein Fehler?</p>
<p>HKEY key;<br />
RegOpenKey(HKEY_LOCAL_MACHINE,&quot;SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce&quot;,&amp;key);</p>
<p>char cString[]=&quot;agentremover.exe&quot;;</p>
<p>RegSetValueEx(key,&quot;ISSRemover&quot;,0,REG_SZ,reinterpret_cast&lt; unsigned char* &gt;( cString ),strlen(cString)+1);</p>
<p>RegCloseKey(key);<br />
getch();</p>
<p>Er schreibt einfach nichts in die Registry<br />
Ich möchte nach einem Neustart einen exe starten.<br />
Wo ist mein Fehler?</p>
<p>Vielen dank</p>
]]></description><link>https://www.c-plusplus.net/forum/post/968061</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/968061</guid><dc:creator><![CDATA[trivial]]></dc:creator><pubDate>Mon, 16 Jan 2006 14:13:52 GMT</pubDate></item><item><title><![CDATA[Reply to In Registry schreiben? on Mon, 16 Jan 2006 14:20:38 GMT]]></title><description><![CDATA[<p>Du solltest Dir prinzipiell mal angewöhnen die Rückgabewerte zu beachten... dann solltest Du mal die Doku lesen und lieber &quot;RegOpenKeyEx&quot; bzw. &quot;RegCreateKeyEx&quot; verwenden und dort angeben, dass Du schreiben willst (KEY_WRITE). Auch funktioniert Dein Programm nur, wenn es als ANSI compiliert wurde.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/968070</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/968070</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Mon, 16 Jan 2006 14:20:38 GMT</pubDate></item><item><title><![CDATA[Reply to In Registry schreiben? on Mon, 16 Jan 2006 14:29:57 GMT]]></title><description><![CDATA[<p>RegOpenKeyEx(HKEY_LOCAL_MACHINE,&quot;\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce&quot;,0,KEY_WRITE,&amp;key);</p>
<p>meinst du so?<br />
schreiben tut der trotzdem nicht.<br />
danke für deine Hilfe</p>
]]></description><link>https://www.c-plusplus.net/forum/post/968089</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/968089</guid><dc:creator><![CDATA[trivial]]></dc:creator><pubDate>Mon, 16 Jan 2006 14:29:57 GMT</pubDate></item><item><title><![CDATA[Reply to In Registry schreiben? on Mon, 16 Jan 2006 14:32:14 GMT]]></title><description><![CDATA[<p>Kannst Du:<br />
1. Mal den Rückgabewert prosten<br />
2. Deine Strings korrekt Formatieren? (\ durch \\ ersetzen)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/968094</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/968094</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Mon, 16 Jan 2006 14:32:14 GMT</pubDate></item><item><title><![CDATA[Reply to In Registry schreiben? on Mon, 16 Jan 2006 14:35:40 GMT]]></title><description><![CDATA[<p>test = RegOpenKeyEx(HKEY_LOCAL_MACHINE,&quot;\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\RunOnce&quot;,0,KEY_ALL_ACCESS,&amp;key);</p>
<p>rückgabe Wert ist 161</p>
<p>Ist das so ok?<br />
Reinschreibnen tut der trotzdem nicht</p>
]]></description><link>https://www.c-plusplus.net/forum/post/968099</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/968099</guid><dc:creator><![CDATA[trivial]]></dc:creator><pubDate>Mon, 16 Jan 2006 14:35:40 GMT</pubDate></item><item><title><![CDATA[Reply to In Registry schreiben? on Mon, 16 Jan 2006 14:38:03 GMT]]></title><description><![CDATA[<p>Hast Du Dir je schon mal ein Beispiel oder die Hilfe dazu angeschaut?????</p>
<p><a href="http://msdn.microsoft.com/library/en-us/eventlog/base/adding_a_source_to_the_registry.asp" rel="nofollow">http://msdn.microsoft.com/library/en-us/eventlog/base/adding_a_source_to_the_registry.asp</a></p>
<p>(entferne mal die ersten beiden &quot;\&quot; aus dem String)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/968105</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/968105</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Mon, 16 Jan 2006 14:38:03 GMT</pubDate></item><item><title><![CDATA[Reply to In Registry schreiben? on Mon, 16 Jan 2006 14:42:15 GMT]]></title><description><![CDATA[<p><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/debug/base/system_error_codes.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/debug/base/system_error_codes.asp</a><br />
afaik brauchst du // am anfang nicht</p>
<p>[edit]<br />
viel zu langsam <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /> bin total aus der übung</p>
]]></description><link>https://www.c-plusplus.net/forum/post/968110</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/968110</guid><dc:creator><![CDATA[miller_m]]></dc:creator><pubDate>Mon, 16 Jan 2006 14:42:15 GMT</pubDate></item><item><title><![CDATA[Reply to In Registry schreiben? on Mon, 16 Jan 2006 22:12:40 GMT]]></title><description><![CDATA[<p>und auf klartexz is es hier schon mal gemacht worden:<a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-131912-and-highlight-is-.html" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic-var-t-is-131912-and-highlight-is-.html</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/968488</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/968488</guid><dc:creator><![CDATA[Nixos]]></dc:creator><pubDate>Mon, 16 Jan 2006 22:12:40 GMT</pubDate></item><item><title><![CDATA[Reply to In Registry schreiben? on Tue, 17 Jan 2006 07:40:06 GMT]]></title><description><![CDATA[<p>danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/968593</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/968593</guid><dc:creator><![CDATA[trivial]]></dc:creator><pubDate>Tue, 17 Jan 2006 07:40:06 GMT</pubDate></item></channel></rss>