[python-win32] errors running C++ client against python COM server

2005-10-05 Thread Impert, Nicky P
Greetings. I need a working example of implementing an event handler in a C++ client with a python server. I broke apart the python connect example into a client and server. (i.e. I split C:\Python24\Lib\site-packages\win32com\demos\connect.py into client.py and server.py in some other

Re: [python-win32] create word document?

2005-10-05 Thread Tim Roberts
On Tue, 4 Oct 2005 01:33:07 -0700 (PDT), ng hsiaohui [EMAIL PROTECTED] wrote: I am creating MS word document using python win32. import win32com.client w = win32com.client.Dispatch(word.application) doc = w.Documents.Add(c:/test.doc) After that where can I find the command use to write

[python-win32] win32pdhutil Processor Time always returns 99

2005-10-05 Thread Segura Blanc, Claudio E.
This is an aparent solution only sintaxis Processor By import win32pdh, time, win32pdhutil path = win32pdh.MakeCounterPath( (None,Processor,_Total, None, -1, % Processor Time) ) #Idle, _Total print path # open the query, and add the counter to the query #print

Re: [python-win32] create word document?

2005-10-05 Thread Gabriel Genellina
At Tuesday 4/10/2005 12:20, [EMAIL PROTECTED] wrote: A final approach would be to record a macro of what you trying to do and then examine the code to find the appropriate objects, interfaces and methods. I consider this the easiest way, specially when you don't know how the exposed objects

[python-win32] Weird ADSI hang.

2005-10-05 Thread Jeff Fisher TEST
Hi all, I'm rather frustrated by an issue I'm having. This sample bit of code runs fine; however, at the end just hangs and the program never ends. I'm using Python 2.3.2 (from ActiveState - build 232) BEGIN CODE import win32com.client def recurse(objstr): for obj in