<?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[LoadImage und Exe ???]]></title><description><![CDATA[<p>Hallo zusammen,<br />
Ich will mit der LoadImage funktion ein Icon aus einer .exe datei laden, das problem ist nur das handle, bei dll's klappt das wunderbar mit LoadLibrary(path) und .ico hab ich auch hinbekommen, nur bei exe dateien wills irgendwie net funzen, gibts da auch sowas wie LoadLibrary bei Dll ?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/44469/loadimage-und-exe</link><generator>RSS for Node</generator><lastBuildDate>Sat, 25 Apr 2026 07:58:22 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/44469.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 31 Jul 2003 10:43:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to LoadImage und Exe ??? on Thu, 31 Jul 2003 10:43:00 GMT]]></title><description><![CDATA[<p>Hallo zusammen,<br />
Ich will mit der LoadImage funktion ein Icon aus einer .exe datei laden, das problem ist nur das handle, bei dll's klappt das wunderbar mit LoadLibrary(path) und .ico hab ich auch hinbekommen, nur bei exe dateien wills irgendwie net funzen, gibts da auch sowas wie LoadLibrary bei Dll ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/321701</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/321701</guid><dc:creator><![CDATA[5kYw4lKeR]]></dc:creator><pubDate>Thu, 31 Jul 2003 10:43:00 GMT</pubDate></item><item><title><![CDATA[Reply to LoadImage und Exe ??? on Thu, 31 Jul 2003 11:04:05 GMT]]></title><description><![CDATA[<p>LoadLibrary sollte sowohl bei DLLs als auch bei EXEs gehen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/321720</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/321720</guid><dc:creator><![CDATA[Walli]]></dc:creator><pubDate>Thu, 31 Jul 2003 11:04:05 GMT</pubDate></item><item><title><![CDATA[Reply to LoadImage und Exe ??? on Thu, 31 Jul 2003 11:07:29 GMT]]></title><description><![CDATA[<p>@MaSTaH<br />
Wie kommst Du darauf? Eine Exe kann nie im gleichen Speicher wie eine andere Exe stehen, da sie die gleiche Einsprungadresse haben.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/321727</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/321727</guid><dc:creator><![CDATA[unbekannt]]></dc:creator><pubDate>Thu, 31 Jul 2003 11:07:29 GMT</pubDate></item><item><title><![CDATA[Reply to LoadImage und Exe ??? on Thu, 31 Jul 2003 11:19:57 GMT]]></title><description><![CDATA[<p>Die Resourcen stehen in einer EXE an einer bestimmten Stelle und die kann man auch auslesen. (Weiß aber die Funktionen jetzt nicht auswendig. Steht aber alles in der MSDN sogar mit Bsp.)<br />
Mit LoadLib wird die dll ja in den Speicherbereich des Programmes geladen. deshalb kann man auch auf die Resourcen zurgreifen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/321744</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/321744</guid><dc:creator><![CDATA[Unix-Tom]]></dc:creator><pubDate>Thu, 31 Jul 2003 11:19:57 GMT</pubDate></item><item><title><![CDATA[Reply to LoadImage und Exe ??? on Thu, 31 Jul 2003 11:27:53 GMT]]></title><description><![CDATA[<p>Ich suche schon ständig in der msdn, aber kann leider nichts finden, würde mich sehr freuen wenn dir die funktion einfallen würde, vielleicht kennt ja noch jemand anderes sie ...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/321761</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/321761</guid><dc:creator><![CDATA[5kYw4lKeR]]></dc:creator><pubDate>Thu, 31 Jul 2003 11:27:53 GMT</pubDate></item><item><title><![CDATA[Reply to LoadImage und Exe ??? on Thu, 31 Jul 2003 12:35:18 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/38823">@unbekannt</a>: Guck mal in die Msdn. Habe dort gelesen, dass es sowohl für dll als auch für exe klappt. Kann auch sein, dass ich mich verlesen habe.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/321825</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/321825</guid><dc:creator><![CDATA[Walli]]></dc:creator><pubDate>Thu, 31 Jul 2003 12:35:18 GMT</pubDate></item><item><title><![CDATA[Reply to LoadImage und Exe ??? on Thu, 31 Jul 2003 13:13:26 GMT]]></title><description><![CDATA[<p><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/WinUI/WindowsUserInterface/Resources/IntroductiontoResources/UsingResources.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/WinUI/WindowsUserInterface/Resources/IntroductiontoResources/UsingResources.asp</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/321850</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/321850</guid><dc:creator><![CDATA[Unix-Tom]]></dc:creator><pubDate>Thu, 31 Jul 2003 13:13:26 GMT</pubDate></item><item><title><![CDATA[Reply to LoadImage und Exe ??? on Thu, 31 Jul 2003 14:42:33 GMT]]></title><description><![CDATA[<p>Erstmal danke für den link, aber das mit dem FindResource hatte ich schonmal probiert und das klappte nicht, naja jetzt hab ich meinen Fehler gefunden,<br />
mir fehlte ein &quot;#&quot; vor dem Icon index.<br />
Jetzt bekomme ich ein Handle für mein Icon, funzt prima, nur wenn ich das Icon jetzt meiner Icon liste hinzufüge gibt die funktion mir -1 also fehlgeschlagen zurück.<br />
Könnte vielleicht an der größe des Icons liegen, meine Iconliste ist für 16x16 vorgesehen.<br />
Hier mal en bisl code:</p>
<pre><code class="language-cpp">HMODULE mod=LoadLibrary(strExePath);
CString strIndex ;
strIndex.Format(&quot;#%i&quot;, iIconIndex);
HRSRC hRes = FindResource( mod,strIndex,RT_ICON );
HICON hIcon = (HICON) LoadResource( mod, hRes);
int iIconNumber = m_ilDirTree.Add(hIcon);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/321924</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/321924</guid><dc:creator><![CDATA[5kYw4lKeR]]></dc:creator><pubDate>Thu, 31 Jul 2003 14:42:33 GMT</pubDate></item><item><title><![CDATA[Reply to LoadImage und Exe ??? on Thu, 31 Jul 2003 15:07:23 GMT]]></title><description><![CDATA[<p>@MaSTaH<br />
So lernt man immernoch dazu. Hab bisher nach LoadLibrary nur GetProcAddress angewendet, und das kann nicht funzen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/321954</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/321954</guid><dc:creator><![CDATA[unbekannt]]></dc:creator><pubDate>Thu, 31 Jul 2003 15:07:23 GMT</pubDate></item><item><title><![CDATA[Reply to LoadImage und Exe ??? on Thu, 31 Jul 2003 17:11:28 GMT]]></title><description><![CDATA[<p>Gibt es irgendeine möglichkeit das Icon zu verkleinern ?<br />
Oder falls das große geladen wird das kleine zu laden ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/322023</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/322023</guid><dc:creator><![CDATA[5kYw4lKeR]]></dc:creator><pubDate>Thu, 31 Jul 2003 17:11:28 GMT</pubDate></item><item><title><![CDATA[Reply to LoadImage und Exe ??? on Thu, 31 Jul 2003 17:39:12 GMT]]></title><description><![CDATA[<p>hab noch ein wenig rumprobiert, aber bekomms net hin, bin mir unsicher obs überhaupt an der größe oder den Farben liegt. Ich glaub eher dass ich ein ungültiges Handle habe.</p>
<p>Brauche unbedingt hilfe, danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/322055</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/322055</guid><dc:creator><![CDATA[5kYw4lKeR]]></dc:creator><pubDate>Thu, 31 Jul 2003 17:39:12 GMT</pubDate></item></channel></rss>