Re: [python-win32] how to get the interface of an COM object?

2006-11-27 Thread Bruce Who
HI,all Finally, I make it work with comtypes. All COM interfaces are available and events can also be handled. Thanks for Thomas's help, :-) On 11/14/06, Bruce Who <[EMAIL PROTECTED]> wrote: > Hi, all > > I am trying to use win32com to interact with a proprietary COM object. > progID of the cocla

Re: [python-win32] Compiling a Python Windows application

2006-11-27 Thread James Matthews
thanks always here to help On 11/27/06, Bob Gailer <[EMAIL PROTECTED]> wrote: Bokverket wrote: > I did program a lot in VB's earlier versions, but it has grown... My > reason > for not considering VB was that the actual processing would make excellent > use of the Python collection objects /dic

[python-win32] Re: _winreg.LoadKey

2006-11-27 Thread Roger Upole
Avery.Andrews wrote: > Does anyone know how to use _winreg.Loadkey, or whether it is even > implemented properly, in 2.4.2 and 2.5 (the fact that it is named > wrong in the Docs and not covered in the test suites doesn't inspire > confidence). > > I find that I can use it to load a key into the to

[python-win32] _winreg.LoadKey

2006-11-27 Thread Avery . Andrews
Does anyone know how to use _winreg.Loadkey, or whether it is even implemented properly, in 2.4.2 and 2.5 (the fact that it is named wrong in the Docs and not covered in the test suites doesn't inspire confidence). I find that I can use it to load a key into the top level (HKEY_LOCAL_MACHINE), bu

Re: [python-win32] pythoncom multithread troubles

2006-11-27 Thread Mark Hammond
> What I have tried: > > - Use DispatchEx instead of Dispatch: this works with other COM > servers, like MS Word and Excel, but not with mine. Probalby has to do > with the fact that they are local servers, whereas mine is inproc. > > - CoInitialize, CoInitializeEx with flags: no luck > > - using C

Re: [python-win32] Compiling a Python Windows application

2006-11-27 Thread Bob Gailer
Bokverket wrote: > I did program a lot in VB's earlier versions, but it has grown... My > reason > for not considering VB was that the actual processing would make excellent > use of the Python collection objects /dictionaries/, which in my mind would > hold words of the Microsoft Word document.

[python-win32] Compiling a Python Windows application

2006-11-27 Thread Bokverket
> Do I have to go through Visual Basic macros to do this One does Word automation using VB. AFAIK there is no other way. We can help guide you thru the steps (this is how I would do it): - create UserForm(s) to collect parameters - create a custom menu using Tools -> Customize with each item tied t

Re: [python-win32] pythoncom multithread troubles

2006-11-27 Thread Kostas Eleftheriou
Hello Thomas, Thanks for your quick reply. I do not marshal anything because I don't need to pass objects between threads, each thread currently only deals with its own objects. I have also tried using a surrogate process to host the dll server (dllhost.exe) through the registry, but although the

Re: [python-win32] pythoncom multithread troubles

2006-11-27 Thread Thomas Heller
Kostas Eleftheriou schrieb: > Hi, > > I have built a python application that uses a COM server from multiple > threads, and despite some initial problems, I got it to work. I found > out (the hard way) that the COM server would have undefined behaviour > if some of its functions were called at the

[python-win32] pythoncom multithread troubles

2006-11-27 Thread Kostas Eleftheriou
Hi, I have built a python application that uses a COM server from multiple threads, and despite some initial problems, I got it to work. I found out (the hard way) that the COM server would have undefined behaviour if some of its functions were called at the same time form multiple threads (so it

[python-win32] Pythoncom error with Excel

2006-11-27 Thread Andrea Gavana
Hi all, I have built a script that communicates with Excel and plots some data using win32com. Everything goes fine as long as the data series do not contain many points. If I have more that few points (let's say 50 points to plot), I get this error: (-2147352567, 'Exception occurred.', (0, '