[Ironpython-users] Pyc.py dependencies

Jeff Hardy jdhardy at gmail.com
Wed Feb 22 22:07:19 CET 2012

On Wed, Feb 22, 2012 at 11:22 AM, Slide <slide.o.mix at 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

More information about the Ironpython-users mailing list