<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Load PNGs from Resource DLL</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Load PNGs from Resource DLL]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 11 Jun 2026 07:41:55 +0000</pubDate>
  <lastBuildDate>Fri, 18 Apr 2008 04:50:30 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=10281</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Load PNGs from Resource DLL : Thanks Oleg!  You are right!...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10281&amp;PID=33890&amp;title=load-pngs-from-resource-dll#33890</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2344">slvrbllt</a><br /><strong>Subject:</strong> 10281<br /><strong>Posted:</strong> 18 April 2008 at 4:50am<br /><br />Thanks Oleg!<DIV>&nbsp;</DIV><DIV>You are right! It works perfectly when compiled.</DIV>]]>
   </description>
   <pubDate>Fri, 18 Apr 2008 04:50:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10281&amp;PID=33890&amp;title=load-pngs-from-resource-dll#33890</guid>
  </item> 
  <item>
   <title><![CDATA[Load PNGs from Resource DLL : Hi, Just tried and it works....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10281&amp;PID=33876&amp;title=load-pngs-from-resource-dll#33876</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 10281<br /><strong>Posted:</strong> 18 April 2008 at 12:58am<br /><br />Hi,<DIV>Just tried and it works. You need compile application and run exe to see bitmaps. From IDE resources are not loaded.</DIV><DIV>&nbsp;</DIV><DIV>For png use</DIV><DIV>IDB_TOOLBAR1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PNG&nbsp;&nbsp;&nbsp; toolbar1.png</DIV>]]>
   </description>
   <pubDate>Fri, 18 Apr 2008 00:58:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10281&amp;PID=33876&amp;title=load-pngs-from-resource-dll#33876</guid>
  </item> 
  <item>
   <title><![CDATA[Load PNGs from Resource DLL : Hi Oleg,   I have loaded my...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10281&amp;PID=33866&amp;title=load-pngs-from-resource-dll#33866</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2344">slvrbllt</a><br /><strong>Subject:</strong> 10281<br /><strong>Posted:</strong> 17 April 2008 at 5:18pm<br /><br />Hi Oleg, <DIV>&nbsp;</DIV><DIV>I have loaded my PNGs into a .res file as "custom" resources.</DIV><DIV>The&nbsp;.RC file may look like this:</DIV><DIV>&nbsp;</DIV><DIV>&#091;...&#093;</DIV><DIV>IDB_TOOLBAR1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PNG&nbsp;&nbsp;&nbsp; toolbar1.png</DIV><DIV>IDB_TOOLBAR2&nbsp;&nbsp;&nbsp;&nbsp; PNG&nbsp;&nbsp;&nbsp; toolbar2.png</DIV><DIV>&nbsp;</DIV><DIV>I have tried to do something like:</DIV><DIV><DIV>IDB_TOOLBAR1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;BITMAP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; toolbar1.png</DIV><DIV>IDB_TOOLBAR2&nbsp;&nbsp;&nbsp;&nbsp; BITMAP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; toolbar2.png</DIV></DIV><DIV>&nbsp;<BR>but RC complains about the PNG not being valid bitmaps.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>The .RES file is included into my project.</DIV><DIV>Then I try to load icons into the command bar by using the following call:</DIV><DIV>&nbsp;</DIV><DIV>CommandBars.Icons.LoadBitmapFromResource App.hInstance, IDB_TOOLBAR1, Array(.....), xtpImageNormal</DIV><DIV>&nbsp;</DIV><DIV>(on the final project, App.hInstance should be replaced by a resource only DLL handle)</DIV><DIV>&nbsp;</DIV><DIV>The toolbar gets populated by buttons with text, but "garbage" instead of icons...</DIV><DIV>&nbsp;</DIV><DIV>Where do I fail ?</DIV>]]>
   </description>
   <pubDate>Thu, 17 Apr 2008 17:18:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10281&amp;PID=33866&amp;title=load-pngs-from-resource-dll#33866</guid>
  </item> 
  <item>
   <title><![CDATA[Load PNGs from Resource DLL : Hi, How did you use LoadBitmapFromResource...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10281&amp;PID=33849&amp;title=load-pngs-from-resource-dll#33849</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 10281<br /><strong>Posted:</strong> 17 April 2008 at 1:21pm<br /><br />Hi,<DIV>How did you use LoadBitmapFromResource&nbsp; ?</DIV>]]>
   </description>
   <pubDate>Thu, 17 Apr 2008 13:21:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10281&amp;PID=33849&amp;title=load-pngs-from-resource-dll#33849</guid>
  </item> 
  <item>
   <title><![CDATA[Load PNGs from Resource DLL : Hello, While I am able to load...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10281&amp;PID=33846&amp;title=load-pngs-from-resource-dll#33846</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2344">slvrbllt</a><br /><strong>Subject:</strong> 10281<br /><strong>Posted:</strong> 17 April 2008 at 1:06pm<br /><br /><P>Hello,</P><DIV>While I am able to load PNGs from a file into a toolbar using the "LoadBitmap" method, I would like to achieve the same result by loading the PNGs at runtime from a resource DLL.</DIV><DIV>LoadBitmapFromResource did not help me at all...</DIV><DIV>&nbsp;</DIV><DIV>Is there any way of doing this ?</DIV><DIV>&nbsp;</DIV><DIV>Thanks.</DIV><DIV>S.</DIV>]]>
   </description>
   <pubDate>Thu, 17 Apr 2008 13:06:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10281&amp;PID=33846&amp;title=load-pngs-from-resource-dll#33846</guid>
  </item> 
 </channel>
</rss>