<?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[.ini Section löschen]]></title><description><![CDATA[<p>Hi, es gibt ja für .ini Datein WritePrivateProfileSection um eine ganze Section zu schreiben, gibts auch sowas fürs löschen ? Bzw. wie lösche ich Daten in der .ini richtig ?</p>
<p>ALso ich hab da zb. so Daten wie :<br />
[Section1]<br />
Key1=Bla1<br />
Key2=Bla2</p>
<p>[Section2]<br />
Key1=Bla6<br />
Key2=Bla11</p>
<p>Und atm mach ich das so, das ich beim löschen die Section suche, und dann einfach bei den Keys ein WritePrivateProfileString(&quot;&quot;) anwende. Damit sind die Daten zwar weg aber ich halt noch die Überreste...</p>
<p>[Sectionx]<br />
Key1=<br />
Key2=</p>
<p>..die allerdings uach weg sollten.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/202858/ini-section-löschen</link><generator>RSS for Node</generator><lastBuildDate>Mon, 06 Apr 2026 04:11:55 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/202858.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 16 Jan 2008 08:21:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to .ini Section löschen on Wed, 16 Jan 2008 08:21:20 GMT]]></title><description><![CDATA[<p>Hi, es gibt ja für .ini Datein WritePrivateProfileSection um eine ganze Section zu schreiben, gibts auch sowas fürs löschen ? Bzw. wie lösche ich Daten in der .ini richtig ?</p>
<p>ALso ich hab da zb. so Daten wie :<br />
[Section1]<br />
Key1=Bla1<br />
Key2=Bla2</p>
<p>[Section2]<br />
Key1=Bla6<br />
Key2=Bla11</p>
<p>Und atm mach ich das so, das ich beim löschen die Section suche, und dann einfach bei den Keys ein WritePrivateProfileString(&quot;&quot;) anwende. Damit sind die Daten zwar weg aber ich halt noch die Überreste...</p>
<p>[Sectionx]<br />
Key1=<br />
Key2=</p>
<p>..die allerdings uach weg sollten.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1437420</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1437420</guid><dc:creator><![CDATA[toxor]]></dc:creator><pubDate>Wed, 16 Jan 2008 08:21:20 GMT</pubDate></item><item><title><![CDATA[Reply to .ini Section löschen on Wed, 16 Jan 2008 08:32:26 GMT]]></title><description><![CDATA[<p>Die &quot;Key1=&quot; Einträge könntest du auf jeden Fall mit WritePrivateProfileSection() wegbekommen, indem du eine leere Stringliste übergibst:</p>
<pre><code class="language-cpp">char empty_section[2]={0,0};
WritePrivateProfileSection(Section,empty_section,MeineApp);
</code></pre>
<p>Ob du damit auch die Section-Überschrift löschen kannst, ist die andere Frage.</p>
<p>Ansonsten kannst du die INI-Datei auch manuell einlesen und anpassen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1437428</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1437428</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Wed, 16 Jan 2008 08:32:26 GMT</pubDate></item><item><title><![CDATA[Reply to .ini Section löschen on Wed, 16 Jan 2008 08:35:14 GMT]]></title><description><![CDATA[<p>Hey habs gefunden,</p>
<pre><code class="language-cpp">WritePrivateProfileString(Sectionname, NULL , NULL ,Pfad);
WritePrivateProfileString(Sectionname, NULL , NULL ,Pfad);
</code></pre>
<p>Das löscht mir die ganze Section, trotzdem vielen Dank</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1437431</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1437431</guid><dc:creator><![CDATA[toxor]]></dc:creator><pubDate>Wed, 16 Jan 2008 08:35:14 GMT</pubDate></item></channel></rss>