Re: [python-win32] Create x64 exe using py2exe on 32bit machine

2008-04-27 Thread Mark Hammond
I don't think you can at the moment - you will probably need the SVN version of python 2.6 and then need to make some patches to py2exe (or at least trick it by manually cross-compiling its stubs as 64bit executables). Mark From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of sidd

Re: [python-win32] QueryInterface fails with object passed from VB

2008-04-27 Thread Mark Hammond
> import comtypes.gen.ResultsInterfaces as ResInt > internalView = view.QueryInterface(ResInt.IViewDataView) ResInt.IViewDataView needs to be converted to either a pywintypes IID object, or a string in {xxx-xxx-etc} format - but I'm not sure how to convert between comtypes IIDs and

Re: [python-win32] Apache & mod_python & win32com

2008-04-27 Thread Mark Hammond
> Thank you Rober & Alex for the answers :-) > But I must admit that I'm still bit uncertain about that whole issue. > As I understood apache it is creating a thread for every request > anyway, or not? No - given the docs posted before, they are created once and shared. When a request completes,

Re: [python-win32] Finding the selected file in Windows Explorer

2008-04-27 Thread Mark Hammond
> What leads you to say this? Do you have a reference? Windows Explorer > in Vista has been substantially modified, but I have not read of any > breaking changes in the shell interface. A few of the interfaces have been dropped - IColumn* comes to mind. Michel may have been referring to DDE, wh

Re: [python-win32] QueryInterface fails with object passed from VB

2008-04-27 Thread jose simas
Hi Mark, Thanks for the answer, I tried using the IViewDataView's uiid like this (probably in a naive way): y = view.QueryInterface("{8D2AD79B-1ADD-4181-BAD4-FF0672A9B6E3}") But that produces the error on that line. com_error: (-2147221005, 'Invalid class string', None, None) I read that I can

Re: [python-win32] QueryInterface fails with object passed from VB

2008-04-27 Thread Mark Hammond
> Hi Mark, > > Thanks for the answer, I tried using the IViewDataView's uiid like > this (probably in a naive way): > > y = view.QueryInterface("{8D2AD79B-1ADD-4181-BAD4-FF0672A9B6E3}") > > But that produces the error on that line. > > com_error: (-2147221005, 'Invalid class string', None, None

Re: [python-win32] QueryInterface fails with object passed from VB

2008-04-27 Thread jose simas
Unfortunately got the same error ('Invalid class string') with 'pywintypes.IID("{... You mention not supporting IDispatch but this interface inherits IDispatch. Here is a snippet from it's IDL: [ odl, uuid(8D2AD79B-1ADD-4181-BAD4-FF0672A9B6E3), version(1.0), dual, nonextensibl

Re: [python-win32] QueryInterface fails with object passed from VB

2008-04-27 Thread Mark Hammond
> Unfortunately got the same error ('Invalid class string') with > 'pywintypes.IID("{... That is strange - it appears the object itself is throwing that error code. E_NOINTERFACE is generally the only "expected" error code for QI. > You mention not supporting IDispatch but this interface inherits

Re: [python-win32] Apache & mod_python & win32com

2008-04-27 Thread Dominique.Holzwarth
The problem with apache tho is, that it starts the thread itself and I don't know wether my script runs on a new thread or not. I did some testing with calling CoInitialize at the start of my scripts and CoUnitialize at the end of my script (as suggested by others before) and it seemed to work..

[python-win32] FileWatcher

2008-04-27 Thread Pierre-Yves Delens
Bonjour, in the context of CAD management (layersmanagement, etc...), we are storing our Layers management in a reference.dwg file, for obvious reasons. But some aspects of this management have to be maintained in alphanumeric format. Therefore we need to trigger each time this reference.dw

Re: [python-win32] Apache & mod_python & win32com

2008-04-27 Thread Mark Hammond
> The problem with apache tho is, that it starts the thread itself and I > don't know wether my script runs on a new thread or not. Yeah - it sucks if there is no way to hook thread creation. > I did some > testing with calling CoInitialize at the start of my scripts and > CoUnitialize at the end