On Wed, Feb 22, 2012 at 11:22 AM, Slide <slide.o....@gmail.com> wrote: > The icon has to be part of unmanaged resources, which can be defined using > DefineUnmanagedResource, but that function expects a compiled resource file, > not a .ico file. So, I have to generate the compiled resource file from the > .ico file to embed as the unmanaged resource. Unless I am completely missing > something.
No, that looks right to me. You could shell out to rc.exe. Just write a temporary .rc file, compile, and pass the .res to DefineUnmanagedResource. I think. I only had to use rc once, in the distant past. :) Downside is that rc.exe require VS or the Windows SDK, neither of which are small. If you can write it in Python without too much work, go for it. - Jeff _______________________________________________ Ironpython-users mailing list Ironpython-users@python.org http://mail.python.org/mailman/listinfo/ironpython-users