<?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[Einstellungen für eigene Programme speichern]]></title><description><![CDATA[<p>Wie kann ich Einstellungen für mein eigenes Programm vom Benutzer verändern und speichern lassen ? Ich bräuchte sozusagen eine eigene Registry.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/84943/einstellungen-für-eigene-programme-speichern</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Apr 2026 07:19:19 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/84943.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 03 Sep 2004 16:54:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Einstellungen für eigene Programme speichern on Fri, 03 Sep 2004 16:54:48 GMT]]></title><description><![CDATA[<p>Wie kann ich Einstellungen für mein eigenes Programm vom Benutzer verändern und speichern lassen ? Ich bräuchte sozusagen eine eigene Registry.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/599026</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/599026</guid><dc:creator><![CDATA[Sony-man 1]]></dc:creator><pubDate>Fri, 03 Sep 2004 16:54:48 GMT</pubDate></item><item><title><![CDATA[Reply to Einstellungen für eigene Programme speichern on Fri, 03 Sep 2004 17:41:07 GMT]]></title><description><![CDATA[<p>Sony-man 1 schrieb:</p>
<blockquote>
<p>Wie kann ich Einstellungen für mein eigenes Programm vom Benutzer verändern und speichern lassen ? Ich bräuchte sozusagen eine eigene Registry.</p>
</blockquote>
<p>entweder in HKEY_LOKAL_USER</p>
<p>oder in einer*.ini datei, die du irgendwo sinnvoll hinterlegst.</p>
<p>Esco</p>
]]></description><link>https://www.c-plusplus.net/forum/post/599061</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/599061</guid><dc:creator><![CDATA[Esco]]></dc:creator><pubDate>Fri, 03 Sep 2004 17:41:07 GMT</pubDate></item><item><title><![CDATA[Reply to Einstellungen für eigene Programme speichern on Fri, 03 Sep 2004 17:45:20 GMT]]></title><description><![CDATA[<p>Kanst dir ne klasse dafür schreiben, die<br />
dann die Daten hält und speichert.</p>
<pre><code class="language-cpp">class Config
{
public:
	int Geta();
	void Seta(int A);
	int Getb();
	void Setb(int B);
public:
	Config();
	virtual ~Config();
	ostream&amp; operator&lt;&lt;(ostream&amp; o);
	istream&amp; operator&lt;&lt;(istream&amp; i);
private:
	int a;	int b;	Config(const Config&amp; copy);
	Config&amp; operator=(const Config&amp; copy);
protected:

};
</code></pre>
<pre><code class="language-cpp">#include&quot;stdafx.h&quot;
#include &quot;Config.h&quot;

// Config

 Config::Config()
{

}

 Config::~Config()
{

}

 Config::Config(const Config&amp; copy)
{

}

Config&amp; Config::operator=(const Config&amp; copy)
{
	return *this;
}

ostream&amp; Config::operator&lt;&lt;(ostream&amp; o)
{
	o &lt;&lt; a &lt;&lt; '  ' &lt;&lt; b;
	return o;
}

istream&amp; Config::operator&lt;&lt;(istream&amp; i)
{
	i &gt;&gt; a;
	i &gt;&gt; b;
	return i;
}

int Config::Geta()
{
	return a;
}

void Config::Seta(int A)
{
	a = A;
}

int Config::Getb()
{
	return b;
}

void Config::Setb(int B)
{
	b = B;
}
</code></pre>
<p>Devil</p>
]]></description><link>https://www.c-plusplus.net/forum/post/599062</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/599062</guid><dc:creator><![CDATA[phlox81]]></dc:creator><pubDate>Fri, 03 Sep 2004 17:45:20 GMT</pubDate></item><item><title><![CDATA[Reply to Einstellungen für eigene Programme speichern on Fri, 03 Sep 2004 18:05:06 GMT]]></title><description><![CDATA[<p>Speichern in der Registry:</p>
<p>SetRegistryKey(_T(&quot;R-Section R-Item&quot;)); Sollte in MyApp.cpp enthalten sein</p>
<p>Da wo es gebraucht wird:</p>
<p>CWinApp* pApp = AfxGetApp();<br />
pApp -&gt; WriteProfileString(R - Section,R - Item, zu speichernder Text);</p>
<p>und wiederholen mit</p>
<p>pApp -&gt; ReadProfileString(R - Section,R - Item, zu speichernder Text);</p>
<p>Es gibt auch ProfileInt etc.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/599072</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/599072</guid><dc:creator><![CDATA[CRIUIX]]></dc:creator><pubDate>Fri, 03 Sep 2004 18:05:06 GMT</pubDate></item></channel></rss>