[python-win32] py2exe and com server again

2009-04-27 Thread Christian K.
Hi, despite all the information on this list and on the wiki I can't get my com server up from the py2exe created dll. As it is a outlook com server I followed the approach taken in the spambayes project, i.e. in the addin I have: bValidateGencache = not hasattr(sys, frozen)

Re: [python-win32] Formatting parts of an excel cell

2009-04-27 Thread Mark Tolonen
Baehr, Manuel manuel.ba...@comsoft.aero wrote in message news:737a64deb003704788e5ce515ed146054b6...@csmail.comsoft.de... Hi Mark, I got an error with that as well, but I figured out the correct way: import win32com.client xl = win32com.client.gencache.EnsureDispatch('Excel.Application')

Re: [python-win32] Extract icon from exe files

2009-04-27 Thread EISEN Nicolas
Tim Roberts wrote: EISEN Nicolas wrote: I understand I will use these functions, but my problem is to found how? I have difficulties to understand how use the arguments : I try some combinations and it's doesn't work. Two big problems: 1 – When I read MSDN’s API for LoadIcon, How I

[python-win32] Iron Python integration.

2009-04-27 Thread Vernon Cole
This is an opinion poll... The portion of pywin32 which I maintain, adodbapi, will work in either CPython or IronPython. That was (relatively) easy, since it is written in pure Python. Is there any interest in forking the pywin32 C code into C# so that the entire package can be run in a .NET

Re: [python-win32] Error 500 on IIS

2009-04-27 Thread Vernon Cole
win32all is a very old name which is still hanging around in some documentation. The package is now referred to as pywin32. http://sourceforge.net/projects/pywin32/ Which versions of Python and pywin32 are you using? -- Vernon Cole On Mon, Apr 27, 2009 at 9:22 AM, Iuri iurisil...@gmail.com

Re: [python-win32] Error 500 on IIS

2009-04-27 Thread Iuri
Oh, sorry. I'm using pywin32-212.win32-py2.6.exe and Python 2.6. I did some tests. Calling a new object with Python Interpreter (Server.CreateObject(Python.Interpreter)), I got this error: Server object error 'ASP 0178 : 80070005' Server.CreateObject Access Error /teste.asp, line 3 The call to

Re: [python-win32] Extract icon from exe files

2009-04-27 Thread Tim Roberts
EISEN Nicolas wrote: / from win32gui import * import win32con listHicon = ExtractIconEx(c:\OpenOffice.exe,0) test = LoadImage(listHicon[0],c:\OpenOffice.exe,0,0,0,win32con.LR_DEFAULTSIZE) tupleIcon = GetIconInfo(test)/ To use GetIconInfo argument should be