Re: [python-win32] win32gui.EnumChildWindows() "crashes" when nochildren exists

2005-03-23 Thread Simon Brunning
On Wed, 23 Mar 2005 09:01:09 +1100, Mark Hammond <[EMAIL PROTECTED]> wrote: > Yeah, it should. This *may* be a safe change to make wrt existing > programs - a program that expects to see the exception should still work if > the code is changed to return an empty list. However, it is possible thin

[python-win32] Struct datatypes from Com objects

2005-03-23 Thread Sean White
Is there special usage for instantiating a struct type object defined in a com object? I am working with a com object, and in it is a struct datatype, which is later used as a required parameter for a method. I cannot seem to be able to instantiate an object of this type, and this is preventing

[python-win32] How to get the main window handle of an application started with win32process.CreateProcess() ?

2005-03-23 Thread Pierre Rouleau
Hi all, I am trying to send a WM_CLOSE mesage to the main window of a Win32 GUI application I started with win32process.CreateProcess(). I want to terminate the application gracefully, allowing the application to perform all of its regular cleanup and prompting it normally does when the us

[python-win32] Re: How to get the main window handle of an application started with win32process.CreateProcess() ?

2005-03-23 Thread Thomas Heller
Pierre Rouleau <[EMAIL PROTECTED]> writes: > Hi all, > > I am trying to send a WM_CLOSE mesage to the main window of a > Win32 GUI application I started with > win32process.CreateProcess(). I want to terminate the > application gracefully, allowing the application to perform a

[python-win32] Re: How to get the main window handle of an application started with win32process.CreateProcess() ?

2005-03-23 Thread Roel Schroeven
Pierre Rouleau wrote: > Hi all, > > I am trying to send a WM_CLOSE mesage to the main window of a Win32 > GUI application I started with win32process.CreateProcess(). I want to > terminate the application gracefully, allowing the application to > perform all of its regular cleanup and prompt

[python-win32] Howto get the main thread window handle of an application created with win32process.CreateProcess?

2005-03-23 Thread Pierre Rouleau
Hi all, I am trying to send a WM_CLOSE mesage to the main window of an application I started with win32process.CreateProcess(). I want to terminate the application gracefully, allowing the application to perform all of its regular cleanup and prompting it normally does when the user requests

Re: [python-win32] Python crash after win32com.client.CastTo?

2005-03-23 Thread Nathan Edwards
For what it's worth, -1073741819 is hex C005, which is STATUS_ACCESS_VIOLATION: a general protection fault. That's usually a wild address or a null pointer dereference. Is it possible that one of those last two parameters is actually (in,out) and not just (out)? The generated function de

[python-win32] WinCE RAPI

2005-03-23 Thread Neil Benn
Hello, I've seen this mentioned a few times but does anyone have a wincerapi binary they could let me have a copy of? I'd be most grateful! All and any help is greatly appreciated. Cheers, Neil ___ Python-win32 mailing list Python-win32@pytho

RE: [python-win32] Python crash after win32com.client.CastTo?

2005-03-23 Thread Mark Hammond
> > For what it's worth, -1073741819 is hex C005, which is > > STATUS_ACCESS_VIOLATION: a general protection fault. > That's usually a > > wild address or a null pointer dereference. Is it possible > that one of > > those last two parameters is actually (in,out) and not just (out)? > > > > The

RE: [python-win32] Struct datatypes from Com objects

2005-03-23 Thread Mark Hammond
> Is there special usage for instantiating a struct type > object defined in a com object? > > I am working with a com object, and in it is a struct > datatype, which is later used as a required parameter > for a method. > > > I cannot seem to be able to instantiate an object of > this > type, and

Re: [python-win32] Python crash after win32com.client.CastTo?

2005-03-23 Thread Nathan Edwards
Try passing explicit args for every arg, or substituting pythoncom.Missing instead of pythoncom.Empty. Already tried the first (same result-immediate crash). Don't understand the second... I've tried explicit "correct value and type" and "incorrect value but correct type" args for every arg, im

[python-win32] Using a COM interface where the objects don't have ProgIDs

2005-03-23 Thread John Clark
My apologies if this is something that should be obvious to me, but I cannot figure out how to use a typelib if that typelib does not establish ProgID values for the CoClasses. The class that was created by EnsureModule() is as follows: class CaWHarvest(CoClassBaseClass): # A CoClass # CaWHarve

Fwd: [python-win32] Using a COM interface where the objects don't have ProgIDs

2005-03-23 Thread John Clark
Okay - sorry for the interruption - banging at this for several more minutes gave me the direction I needed. For anyone else out there struggling, I found that if I call win32com.client.dynamic.Dispatch('{70107C62-8ABB-11D5-961B-0010A4F73DE4}') and if I actually DO register the COM control, rat