<?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[Icon aus .exe oder .dll]]></title><description><![CDATA[<p>Hallo zusammen!</p>
<p>Ich möchte in meinem Programm Dateien wie .exe oder .dll bildlich darstellen.<br />
Dazu brauche ich eine entsprechende Icon, die der betroffenen Datei zugewiesen ist.</p>
<p>Weiß jemand villeicht, wie das geht?</p>
<p>Danke im voraus.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/148991/icon-aus-exe-oder-dll</link><generator>RSS for Node</generator><lastBuildDate>Mon, 20 Jul 2026 01:48:47 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/148991.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 01 Jun 2006 09:15:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Icon aus .exe oder .dll on Thu, 01 Jun 2006 09:15:53 GMT]]></title><description><![CDATA[<p>Hallo zusammen!</p>
<p>Ich möchte in meinem Programm Dateien wie .exe oder .dll bildlich darstellen.<br />
Dazu brauche ich eine entsprechende Icon, die der betroffenen Datei zugewiesen ist.</p>
<p>Weiß jemand villeicht, wie das geht?</p>
<p>Danke im voraus.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1069365</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1069365</guid><dc:creator><![CDATA[Laie]]></dc:creator><pubDate>Thu, 01 Jun 2006 09:15:53 GMT</pubDate></item><item><title><![CDATA[Reply to Icon aus .exe oder .dll on Thu, 01 Jun 2006 11:12:59 GMT]]></title><description><![CDATA[<p>Ich denke das dürfte dir helfen <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>Mit dieser Funktion holst du dir die Standard Icons der jeweiligen Extension, wie sie im Explorer angezeigt werden!<br />
[cpp]</p>
<p>SHFILEINFO sfi = { 0 };</p>
<p>SHGetFileInfo(szExt, // in dieser Variable muss die Erweiterung[Extension] stehen, z.b. exe, dll usw.<br />
FILE_ATTRIBUTE_NORMAL, &amp;sfi,<br />
sizeof(sfi), SHGFI_USEFILEATTRIBUTES|SHGFI_ICON|SHGFI_SYSICONINDEX);<br />
[cpp]</p>
<p>In der sfi Struktur gibt es eine Variable die hIcon lautet - das ist das Handle zu dem Icon!</p>
<p>Wobei ich mir nicht mehr ganz sicher bin, ob in szExt &quot;.exe&quot; oder nur &quot;exe&quot; stehen muss - das müsstet du noch ausprobieren.</p>
<p>lG</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1069467</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1069467</guid><dc:creator><![CDATA[Hehehe]]></dc:creator><pubDate>Thu, 01 Jun 2006 11:12:59 GMT</pubDate></item><item><title><![CDATA[Reply to Icon aus .exe oder .dll on Thu, 01 Jun 2006 11:14:53 GMT]]></title><description><![CDATA[<p>Sry, hier nochmal formatiert:</p>
<pre><code class="language-cpp">SHFILEINFO sfi = { 0 };

SHGetFileInfo(szExt, // in dieser Variable muss die Erweiterung[Extension] stehen,                  z.b. exe, dll usw.
              FILE_ATTRIBUTE_NORMAL, 
              &amp;sfi,
              sizeof(sfi), 
              SHGFI_USEFILEATTRIBUTES|SHGFI_ICON|SHGFI_SYSICONINDEX);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1069468</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1069468</guid><dc:creator><![CDATA[sry]]></dc:creator><pubDate>Thu, 01 Jun 2006 11:14:53 GMT</pubDate></item><item><title><![CDATA[Reply to Icon aus .exe oder .dll on Thu, 01 Jun 2006 11:51:47 GMT]]></title><description><![CDATA[<p>Danke fur die schnelle Antwort.<br />
Es hat geklappt <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>
<p>Jetzt aber noch ein Problem. Ich möchte diese Icons in ein Kontextmenu bringen.</p>
<p>Die Klasse CMenu kann aber nur mit Bitmaps umgehen. Wie kann ich HICON in CBitmap umwandeln?</p>
<p>Danke.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1069488</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1069488</guid><dc:creator><![CDATA[Laie]]></dc:creator><pubDate>Thu, 01 Jun 2006 11:51:47 GMT</pubDate></item><item><title><![CDATA[Reply to Icon aus .exe oder .dll on Thu, 01 Jun 2006 11:55:20 GMT]]></title><description><![CDATA[<p>Erzeuge einen Memory DC und zeichne das Icon in diesen DC.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1069492</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1069492</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Thu, 01 Jun 2006 11:55:20 GMT</pubDate></item><item><title><![CDATA[Reply to Icon aus .exe oder .dll on Thu, 01 Jun 2006 12:22:24 GMT]]></title><description><![CDATA[<p>Ja, dachte ich auch... <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /><br />
... aber wie? Sowas habe ich noch nie gemacht.</p>
<p>Hättest du villeicht ein Beispiel parat?</p>
<p>Danke.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1069530</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1069530</guid><dc:creator><![CDATA[Laie]]></dc:creator><pubDate>Thu, 01 Jun 2006 12:22:24 GMT</pubDate></item></channel></rss>