[Distutils] MSVC CRT woes

Thomas Heller theller at python.net
Thu Feb 5 14:52:18 EST 2004


"Phil Hornby" <phil.hornby at accutest.co.uk> writes:

> Thomas,
>
> Could you explicity add an icon as the apps icon - as when I have looked at
> the sources there isn't one - so it is hard for me to write code to replace
> it - my earlier thread - if it doesn't explicitly exist as I need to know
> the resource id to change it...

I would have added one if I would have found one that is really free to
use legally.  I have to admint that I don't care too much about the icon
so I did not search very hard (if at all ;-).

> I will try to put something together for you when I have some time...but I
> only have MSVC7.1 so I can't give you a project for MSVC6.

One problem you will face (and that is maybe an additional argument
against making the icon changeable at runtime, when the distribution is
built), is that the ...UpdateResource() functions from the win32 api are
only available on NT/2000/XP, not Win95/98/Me.  At least when
Microsoft's unicows.dll is not available.  And IMO unicows.dll license
restrictions are not 'compatible' with the Python license to allow
redistribution with Python or distutils.

Thomas




More information about the Distutils-SIG mailing list