<?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[unter eigene Dateien speichern]]></title><description><![CDATA[<p>Moin,</p>
<p>ich habe(mal wieder) ein kleines C++ problem.</p>
<p>Ich habe vor, etwas unter eigene Dateien abzuspeichern.Um den Pfad zu bestimmen, habe ich versucht, ihn so auszulesen:</p>
<pre><code>#pragma hdrstop
#include &lt;shlobj.h&gt;
#include &quot;Unit1.h&quot;
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource &quot;*.dfm&quot;
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
        : TForm(Owner)
{
  char         Buffer[MAX_PATH];
LPITEMIDLIST ItemID;

SHGetSpecialFolderLocation(0, CSIDL_PERSONAL, &amp;ItemID);
SHGetPathFromIDList(ItemID, Buffer);

AnsiString Pfad = AnsiString(Buffer);
</code></pre>
<p>Dann geht ein fenster mit &quot;shlobj.h&quot;auf und es kommen folgende Fehler:</p>
<blockquote>
<p>[C++ Fehler] shobjidl.h(2193): E2238 Bezeichner 'FOLDERSETTINGS' mehrfach deklariert<br />
[C++ Fehler] shobjidl.h(8095): E2238 Bezeichner 'DESKBANDINFO' mehrfach deklariert<br />
[C++ Fehler] shlobj.h(1422): E2238 Bezeichner 'FVSHOWINFO' mehrfach deklariert<br />
[C++ Fehler] shlobj.h(3457): E2238 Bezeichner 'SHELLFLAGSTATE' mehrfach deklariert</p>
</blockquote>
<p>Kann mir einer sagen, was ich falsch mache, und wie es richtig heißen muss?</p>
<p>Wäre nett, wenn ihr mir auch verraten würdet, wie ich einen Ordner in einem Verzeichnis ( zb. eigene Dateien) erstellen kann, um dort die Informationen für das Programm zu speichern.</p>
<p>Danke schonmal im Vorraus <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
<p>schnurres</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/162410/unter-eigene-dateien-speichern</link><generator>RSS for Node</generator><lastBuildDate>Tue, 11 Aug 2026 19:25:33 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/162410.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 18 Oct 2006 09:48:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to unter eigene Dateien speichern on Wed, 18 Oct 2006 09:56:05 GMT]]></title><description><![CDATA[<p>Moin,</p>
<p>ich habe(mal wieder) ein kleines C++ problem.</p>
<p>Ich habe vor, etwas unter eigene Dateien abzuspeichern.Um den Pfad zu bestimmen, habe ich versucht, ihn so auszulesen:</p>
<pre><code>#pragma hdrstop
#include &lt;shlobj.h&gt;
#include &quot;Unit1.h&quot;
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource &quot;*.dfm&quot;
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
        : TForm(Owner)
{
  char         Buffer[MAX_PATH];
LPITEMIDLIST ItemID;

SHGetSpecialFolderLocation(0, CSIDL_PERSONAL, &amp;ItemID);
SHGetPathFromIDList(ItemID, Buffer);

AnsiString Pfad = AnsiString(Buffer);
</code></pre>
<p>Dann geht ein fenster mit &quot;shlobj.h&quot;auf und es kommen folgende Fehler:</p>
<blockquote>
<p>[C++ Fehler] shobjidl.h(2193): E2238 Bezeichner 'FOLDERSETTINGS' mehrfach deklariert<br />
[C++ Fehler] shobjidl.h(8095): E2238 Bezeichner 'DESKBANDINFO' mehrfach deklariert<br />
[C++ Fehler] shlobj.h(1422): E2238 Bezeichner 'FVSHOWINFO' mehrfach deklariert<br />
[C++ Fehler] shlobj.h(3457): E2238 Bezeichner 'SHELLFLAGSTATE' mehrfach deklariert</p>
</blockquote>
<p>Kann mir einer sagen, was ich falsch mache, und wie es richtig heißen muss?</p>
<p>Wäre nett, wenn ihr mir auch verraten würdet, wie ich einen Ordner in einem Verzeichnis ( zb. eigene Dateien) erstellen kann, um dort die Informationen für das Programm zu speichern.</p>
<p>Danke schonmal im Vorraus <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
<p>schnurres</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1156912</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1156912</guid><dc:creator><![CDATA[schnurres]]></dc:creator><pubDate>Wed, 18 Oct 2006 09:56:05 GMT</pubDate></item><item><title><![CDATA[Reply to unter eigene Dateien speichern on Wed, 18 Oct 2006 09:54:48 GMT]]></title><description><![CDATA[<p>schnurres schrieb:</p>
<blockquote>
<p>Dann kommen geht ein fenster mit &quot;shlobj.h&quot;auf und es kommen folgende Fehler:</p>
</blockquote>
<p>Siehe <a href="http://www.c-plusplus.net/forum/viewtopic.php?t=39305" rel="nofollow">FAQ</a>.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1156919</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1156919</guid><dc:creator><![CDATA[Jansen]]></dc:creator><pubDate>Wed, 18 Oct 2006 09:54:48 GMT</pubDate></item><item><title><![CDATA[Reply to unter eigene Dateien speichern on Wed, 18 Oct 2006 09:58:54 GMT]]></title><description><![CDATA[<p>Jansen schrieb:</p>
<blockquote>
<p>schnurres schrieb:</p>
<blockquote>
<p>Dann geht ein fenster mit &quot;shlobj.h&quot;auf und es kommen folgende Fehler:</p>
</blockquote>
<p>Siehe <a href="http://www.c-plusplus.net/forum/viewtopic.php?t=39305" rel="nofollow">FAQ</a>.</p>
</blockquote>
<p>Vielen Dank!</p>
<p>Das Problem ist beseitigt, aber jetzt weiß ich immer noch nicht, wie ich Ordner erstellen kann <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1156921</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1156921</guid><dc:creator><![CDATA[schnurres]]></dc:creator><pubDate>Wed, 18 Oct 2006 09:58:54 GMT</pubDate></item><item><title><![CDATA[Reply to unter eigene Dateien speichern on Wed, 18 Oct 2006 11:01:47 GMT]]></title><description><![CDATA[<p>Mit VCL<br />
CreateDir() oder ForceDirectories()</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1156977</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1156977</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Wed, 18 Oct 2006 11:01:47 GMT</pubDate></item><item><title><![CDATA[Reply to unter eigene Dateien speichern on Wed, 18 Oct 2006 13:59:44 GMT]]></title><description><![CDATA[<p>thx ! hat 1a geklappt. Danke an alle, die mir geholfen haben <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f60b.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_savoring_food"
      title=":yum:"
      alt="😋"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1157141</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1157141</guid><dc:creator><![CDATA[schnurres]]></dc:creator><pubDate>Wed, 18 Oct 2006 13:59:44 GMT</pubDate></item></channel></rss>