native resource editor..what is it?

  • Thread starter Thread starter farseer
  • Start date Start date
F

farseer

hi,
In searching for a solution to my problem, i came across this post...

http://groups.google.com/group/micr...cationAdd+icon&rnum=18&hl=en#f2d8daec0cf81683

What i am trying to is the following: to my C# project i added a
resource file (app.resx) and then added an icon to this resource file
(name: IL_ICON). Now i would like to use this icon with
SHNotificationAdd. However i am unable to do the following:

IntPtr hIcon =
XAPI.LoadIcon(XAPI.GetModuleHandle("ph.resx"), "NL_ICON");

in the link above, peter states "It is possible to use native icon
resources from any exe or dll in this way. Be aware however that icons
added as resources to your .NETCF executable are not stored as native
icons - you will need to use a native resource editor to package them."

I am not clear on what a native resource editor is. can anyone assist
in explaining or helping me solve this issue?
 
solved this by placing the resource in a dll and exporting a function
in that dll that returns the handle of the icon...
 
Back
Top