<?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[Speichern einer anwendung.]]></title><description><![CDATA[<p>Wie speichere ich die anwendung so das wenn ich sie schließe komplett gespeichert wird.<br />
Und wenn ich sie öffne genau das ist wie ich es verlassen habe.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/89024/speichern-einer-anwendung</link><generator>RSS for Node</generator><lastBuildDate>Sun, 05 Jul 2026 16:08:40 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/89024.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 15 Oct 2004 08:41:42 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Speichern einer anwendung. on Fri, 15 Oct 2004 08:41:42 GMT]]></title><description><![CDATA[<p>Wie speichere ich die anwendung so das wenn ich sie schließe komplett gespeichert wird.<br />
Und wenn ich sie öffne genau das ist wie ich es verlassen habe.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/629211</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/629211</guid><dc:creator><![CDATA[stubentier]]></dc:creator><pubDate>Fri, 15 Oct 2004 08:41:42 GMT</pubDate></item><item><title><![CDATA[Reply to Speichern einer anwendung. on Fri, 15 Oct 2004 08:46:59 GMT]]></title><description><![CDATA[<p>Wie fahre ich ein Auto so das wenn ich einsteige es losfährt.<br />
Und wenn ich aussteige es genau da ist wo ich eingestiegen bin.<br />
<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="🙄"
    /><br />
Deine Fragestellung ist etwas konfus ...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/629218</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/629218</guid><dc:creator><![CDATA[Peter]]></dc:creator><pubDate>Fri, 15 Oct 2004 08:46:59 GMT</pubDate></item><item><title><![CDATA[Reply to Speichern einer anwendung. on Fri, 15 Oct 2004 09:34:32 GMT]]></title><description><![CDATA[<p>Hallo!</p>
<p>Ich meine das war unter TOOLS-&gt;Umgebungsoptionen-&gt;PRÄFERENZEN ProjektDesktop speichern.</p>
<p>Wenn du das meinst?! Oder meinst du eine programmierte Anwendung?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/629258</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/629258</guid><dc:creator><![CDATA[Jannika]]></dc:creator><pubDate>Fri, 15 Oct 2004 09:34:32 GMT</pubDate></item><item><title><![CDATA[Reply to Speichern einer anwendung. on Fri, 15 Oct 2004 09:39:48 GMT]]></title><description><![CDATA[<p>ok sagen wir ich habe 10 memos 10 labels 10 editfelder und 6 listboxes.<br />
wie speicher ich das alles ohne mir mein finger wund zutippen.<br />
ich dacht da an ein butten der exit heißt wo ich draufclicke und alles wird gespeicher wenn ich die anwendung ferlasse. beim aufrufen sollte dan alles genau so sein wie beim verlassen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/629264</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/629264</guid><dc:creator><![CDATA[stubentier]]></dc:creator><pubDate>Fri, 15 Oct 2004 09:39:48 GMT</pubDate></item><item><title><![CDATA[Reply to Speichern einer anwendung. on Fri, 15 Oct 2004 09:47:04 GMT]]></title><description><![CDATA[<p>Eigens zu diesem Zweck wurden seinerzeit INI-Dateien erfunden. Heutzutage nimmt man dafür die Registry. Dort kannst Du die Stati und Werte beim Beenden abspeichern und beim Starten wieder laden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/629266</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/629266</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Fri, 15 Oct 2004 09:47:04 GMT</pubDate></item><item><title><![CDATA[Reply to Speichern einer anwendung. on Fri, 15 Oct 2004 10:42:02 GMT]]></title><description><![CDATA[<p>Ok ich habe mir die hilfe angeschaut. Ich habe was gefunden könntet ihr fielleicht helfen. So weit bin ich noch nicht das ich das verstehen kann.<br />
Einfach erklärungen an der seite reichen denn ich will es ja verstehen und nicht ein programm haben das schon fertig ist das würde mich nicht weiterbringen.</p>
<pre><code class="language-cpp">#include &lt;Registry.hpp&gt;

void __fastcall TForm1::Button1Click(TObject *Sender)
{
  if (NameofKey-&gt;Text.IsEmpty() || ValueforKey-&gt;Text.IsEmpty())
  {
    ShowMessage(&quot;Schlüsselname oder Wert nicht gefunden.&quot;)
    return;
  }
  TRegIniFile *Reg = new TRegIniFile(&quot;MyApplication&quot;);
  try
  {
    Reg-&gt;RootKey =  HKEY_LOCAL_MACHINE; // Abschnitt in Registrierung
    if (!Reg-&gt;OpenKey(NameofKey-&gt;Text, false))
    {
      if (Application-&gt;MessageBox(&quot;Angegebener Schlüssel existiert nicht, erstellen?&quot;,

                                  &quot;&quot;, MB_YESNO) == IDYES)
      {
        Reg-&gt;CreateKey(NameofKey-&gt;Text);
        if (!Reg-&gt;OpenKey(NameofKey-&gt;Text, false))
          ShowMessage(&quot;Fehler beim Öffnen des erstellten Schlüssels&quot;);
        else
          Reg-&gt;WriteString(&quot;Value1&quot;,ValueForKey-&gt;Text);
      }
    }
    else
          Reg-&gt;WriteString(&quot;Section1&quot;, &quot;Value1&quot;, ValueforKey-&gt;Text);
      }
    }
    else
      Reg-&gt;WriteString(&quot;Section1&quot;, &quot;Value1&quot;, ValueforKey-&gt;Text);

  }
  __finally
  {
    delete Reg;
  }
}
</code></pre>
<p>vielen dank</p>
]]></description><link>https://www.c-plusplus.net/forum/post/629304</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/629304</guid><dc:creator><![CDATA[stubentier]]></dc:creator><pubDate>Fri, 15 Oct 2004 10:42:02 GMT</pubDate></item><item><title><![CDATA[Reply to Speichern einer anwendung. on Fri, 15 Oct 2004 13:02:38 GMT]]></title><description><![CDATA[<p>??? Was verstehst Du nicht ?</p>
<p>Die Kommentare sind doch eindeutig.</p>
<p>* &quot;MyApplication&quot; ist DEIN Programmname - kannst Du beliebig wählen.</p>
<p>* NameofKey ist ein Editfeld mit dem Schlüssel der zu speichern ist.</p>
<p>* ValueofKey ist der zugehörige Wert</p>
<p>PS: Du kannst Schluesselwert/ und Name auch als Parameter (Liste) an eine Funktion übergeben, dann speichert der alle möglichen Schlüssel mit Wert in Registry (bei mehrfachem Aufruf der Funktion)</p>
<p>Die Werte kannste mit Regedit (WINDOWS) nachschauen. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /><br />
Bei Programmstart lässt Du die Befehlsfolge auch abfahren aber mit Readstring!!!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/629447</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/629447</guid><dc:creator><![CDATA[DerAltenburger]]></dc:creator><pubDate>Fri, 15 Oct 2004 13:02:38 GMT</pubDate></item></channel></rss>