I&#39;m feeling pretty masochistic lately, so maybe I&#39;ll write it in pure Python :-) The other option is pulling in something like wrc.exe from WINE depending on the license winres from binutils is another option. I can check into those options as well. What license would we want in order to redistribute with IP, I am terrible with licenses.<div>
<br></div><div>slide<br><br><div class="gmail_quote">On Wed, Feb 22, 2012 at 2:07 PM, Jeff Hardy <span dir="ltr">&lt;<a href="mailto:jdhardy@gmail.com">jdhardy@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Wed, Feb 22, 2012 at 11:22 AM, Slide &lt;<a href="mailto:slide.o.mix@gmail.com">slide.o.mix@gmail.com</a>&gt; wrote:<br>
&gt; The icon has to be part of unmanaged resources, which can be defined using<br>
&gt; DefineUnmanagedResource, but that function expects a compiled resource file,<br>
&gt; not a .ico file. So, I have to generate the compiled resource file from the<br>
&gt; .ico file to embed as the unmanaged resource. Unless I am completely missing<br>
&gt; something.<br>
<br>
</div>No, that looks right to me.<br>
<br>
You could shell out to rc.exe. Just write a temporary .rc file,<br>
compile, and pass the .res to DefineUnmanagedResource. I think. I only<br>
had to use rc once, in the distant past. :) Downside is that rc.exe<br>
require VS or the Windows SDK, neither of which are small.<br>
<br>
If you can write it in Python without too much work, go for it.<br>
<span class="HOEnZb"><font color="#888888"><br>
- Jeff<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>Website: <a href="http://earl-of-code.com" target="_blank">http://earl-of-code.com</a><br>
</div>