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.<div>
<br></div><div>slide<br><br><div class="gmail_quote">On Wed, Feb 22, 2012 at 12: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="HOEnZb"><div class="h5">On Wed, Feb 22, 2012 at 9:44 AM, Slide &lt;<a href="mailto:slide.o.mix@gmail.com">slide.o.mix@gmail.com</a>&gt; wrote:<br>
&gt; Currently pyc.py only uses .NET imports and classes, I&#39;m looking at adding<br>
&gt; support for an embedded icon and win32 (native) resources in general. Are<br>
&gt; people opposed to adding a dependency on the struct module, or ctypes to<br>
&gt; accomplish that stuff?<br>
<br>
</div></div>It&#39;s weird to me that it&#39;s not possible to do that through pure .NET,<br>
but if that&#39;s the only way go ahead. We can safely assume a stdlib<br>
will be present.<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>