Re: [python-win32] remote copy with compress/decompress

2004-12-13 Thread Jens B. Jorgensen
Well, this is pretty easy to do. The server side would look like this import socket, sys, pickle s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.bind(('', )) s.listen(5) while True : clientsock, clientaddr = s.accept() # read size of file file_size = pickle.load(clientsock.make

[python-win32] Re: Python-win32 Digest, Vol 21, Issue 13

2004-12-13 Thread Dave Jones
I posted this once before and got no responses. One more try and I guess I'll have to give up. I really hate to though... Pythonwin has quit working properly on my office computer, and I am at a loss as to how to fix it. I am using Python23 on MS Windows 2000 Pro. Prior to re-installing Python

[python-win32] DLL spec

2004-12-13 Thread Tony Cappellini
This isn't really a purely-Python question, but ... I want to write a small Python app that dumps the contents of DLL's. I know there is a program called bindump or something similar that comes with VC6, which shows you the name of the callable routines, their entry points, and some other info,

[python-win32] Problem building pywin32

2004-12-13 Thread Mark English
I'm trying to build pywin32, and would like to know how to specify an override for the include directories. It's finding "shlobj.h" here: "C:\Program Files\Microsoft SDK\include\shlobj.h" But I want it to use the one here: "C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include

[python-win32] Re: A Python Service that monitors the clipboard?

2004-12-13 Thread VanL
Thanks for the replies so far. I have played a little bit with the clipboard code, and I found the ctypes code snippet reproduced this message. I have tweaked this a little bit and was going to use this to set the clipboard text across processes. The thing that I can't figure out is how to have

RE: [python-win32] COM and Threaded XML-RPC server

2004-12-13 Thread Tim Golden
[Harry Fuecks] Well just a quick response to start with. I can't tell for sure, but most probs with multithreaded apps and COM derive from not initializing the COM threading model. Have a look at this post: http://aspn.activestate.com/ASPN/Mail/Message/Python-win32/2168314 for a discussion of a

Re: [python-win32] COM and Threaded XML-RPC server

2004-12-13 Thread Harry Fuecks
Hi Tim, Works perfectly - many thanks (the Python Win32 book is due Christmas so hopefully will know things like that in future). Also using the WMI module btw (example stripped down to show the point) - many thanks for writing it - saves alot of effort. Regards, Harry On Mon, 13 Dec 2004 15:1

[python-win32] remote copy with compress/decompress

2004-12-13 Thread python
Hello, I'm wondering if i try a good solution for the following problem: We have an old DOS Application running on a W2K-Server which uses normal DOS-print and a workstation(w2k) in an outlet connected to the server via VPN. The workstation uses remote desktop to run the software and prints to LP

[python-win32] COM and Threaded XML-RPC server

2004-12-13 Thread Harry Fuecks
Hi, Wondering if someone can give me any pointers with a problem. Trying to call COM objects from inside an XML-RPC server which is using Python's threading (via SocketServer.ThreadingMixIn in the standard library). Gettings errors like; pywintypes.com_error:(-2147221020, 'Invalid syntax', None,