<?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[GTK + SHGetSpecialFolderLocation]]></title><description><![CDATA[<p>Ich möchte mit einer Windows-API den Ordner für Favoriten ermitteln, und diesen dann in einer GTK-Entry-Box darstellen. Ich hoffe der Post ist hier richtig, ich weiß noch net ob das Problem an GTK oder Windows liegt (wie wärs mal mit einem GTK-Forum hier? :)).</p>
<p>Der Fehler tritt dann an der shell32.dll auf. Würd ja gerne mehr Details geben, hab aber mein WinDebug verschlampt <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="🙂"
    /></p>
<p>ALso hier ist einmal der Aufruf und die Funktion. Hab die Funktion aus dem VB-Original auf C++ umgeschrieben.</p>
<pre><code class="language-cpp">char *get_favourites_folder_32 () {
  ITEMIDLIST *idl;
  char *temp;

  SHGetSpecialFolderLocation (NULL, CSIDL_FAVORITES, &amp;idl);
  SHGetPathFromIDList (idl, temp);

  return temp;
}
</code></pre>
<pre><code class="language-cpp">g_print (get_favourites_folder_32());
  gtk_box_pack_start (GTK_BOX (v_step2), lbl_step2, FALSE, FALSE, 0);
  gtk_box_pack_start (GTK_BOX (v_step2), s2_entry1, FALSE, FALSE, 0);
</code></pre>
<p>Ich bekomm dann halt einen Programmfehle von wegn &quot;Diese Anwenung muss geschloßen werden undsoweiter&quot;.</p>
<p>Ich hoffe ihr könnt mir helfen!</p>
<p>THX, Sean</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/73690/gtk-shgetspecialfolderlocation</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Apr 2026 09:08:25 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/73690.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 12 May 2004 20:48:18 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to GTK + SHGetSpecialFolderLocation on Wed, 12 May 2004 20:48:18 GMT]]></title><description><![CDATA[<p>Ich möchte mit einer Windows-API den Ordner für Favoriten ermitteln, und diesen dann in einer GTK-Entry-Box darstellen. Ich hoffe der Post ist hier richtig, ich weiß noch net ob das Problem an GTK oder Windows liegt (wie wärs mal mit einem GTK-Forum hier? :)).</p>
<p>Der Fehler tritt dann an der shell32.dll auf. Würd ja gerne mehr Details geben, hab aber mein WinDebug verschlampt <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="🙂"
    /></p>
<p>ALso hier ist einmal der Aufruf und die Funktion. Hab die Funktion aus dem VB-Original auf C++ umgeschrieben.</p>
<pre><code class="language-cpp">char *get_favourites_folder_32 () {
  ITEMIDLIST *idl;
  char *temp;

  SHGetSpecialFolderLocation (NULL, CSIDL_FAVORITES, &amp;idl);
  SHGetPathFromIDList (idl, temp);

  return temp;
}
</code></pre>
<pre><code class="language-cpp">g_print (get_favourites_folder_32());
  gtk_box_pack_start (GTK_BOX (v_step2), lbl_step2, FALSE, FALSE, 0);
  gtk_box_pack_start (GTK_BOX (v_step2), s2_entry1, FALSE, FALSE, 0);
</code></pre>
<p>Ich bekomm dann halt einen Programmfehle von wegn &quot;Diese Anwenung muss geschloßen werden undsoweiter&quot;.</p>
<p>Ich hoffe ihr könnt mir helfen!</p>
<p>THX, Sean</p>
]]></description><link>https://www.c-plusplus.net/forum/post/519340</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/519340</guid><dc:creator><![CDATA[Sean Mertiens]]></dc:creator><pubDate>Wed, 12 May 2004 20:48:18 GMT</pubDate></item><item><title><![CDATA[Reply to GTK + SHGetSpecialFolderLocation on Wed, 12 May 2004 20:59:43 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ein Tipp: probiere das gleiche mit SHGetSpecialFolderPath, ist einfacher zu handhaben (benötigt z.B. keinen LPITEMIDLIST-Zeiger, und keine besonderen Vorkehrungen).</p>
<p>MfG</p>
]]></description><link>https://www.c-plusplus.net/forum/post/519352</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/519352</guid><dc:creator><![CDATA[Probe-Nutzer]]></dc:creator><pubDate>Wed, 12 May 2004 20:59:43 GMT</pubDate></item><item><title><![CDATA[Reply to GTK + SHGetSpecialFolderLocation on Thu, 13 May 2004 05:37:28 GMT]]></title><description><![CDATA[<blockquote>
<pre><code class="language-cpp">char *temp;
</code></pre>
</blockquote>
<p>Wo zeigt der Zeiger denn hin? Musst auch Speicher holen!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!111</p>
]]></description><link>https://www.c-plusplus.net/forum/post/519395</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/519395</guid><dc:creator><![CDATA[hehehe]]></dc:creator><pubDate>Thu, 13 May 2004 05:37:28 GMT</pubDate></item><item><title><![CDATA[Reply to GTK + SHGetSpecialFolderLocation on Thu, 13 May 2004 06:31:35 GMT]]></title><description><![CDATA[<p>funktioniert.<br />
bin n alter vb-user und vergess das immer mit dem speicher <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="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/519418</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/519418</guid><dc:creator><![CDATA[Sean Mertiens]]></dc:creator><pubDate>Thu, 13 May 2004 06:31:35 GMT</pubDate></item></channel></rss>