Re: [python-win32] dde.pyd always dies after exactly 16378 Requests

2005-05-26 Thread RayS
Hi Mark, I'll try a version calling Excel via DDE as time permits. It's not a show stopper, I just have to be careful. Thanks, Ray At 04:16 PM 5/26/2005, Mark Hammond wrote: I can see no obvious leaks in the dde code.  It is possible the problem is at the "other end" of the conversation?  If it

Re: [python-win32] can dev-cpp's "winanim" example be duplicated withwin32gui etc?

2005-05-26 Thread R. Alan Monroe
>> The internal "message loop" is built into win32gui in PumpMessages() - >> internally we do that Get/Translate/Dispatch dance, and delegate the message >> itself to a Python function via the Python "message map". For completeness >> though I have just added GetMessage() - but it should only be u

Re: [python-win32] dde.pyd always dies after exactly 16378 Requests

2005-05-26 Thread Mark Hammond
I can see no obvious leaks in the dde code.  It is possible the problem is at the "other end" of the conversation?  If it possible to create a repro case using Python code at both ends?   Mark -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Ray

Re: [python-win32] convert encoding from UNIX/MAC to DOS

2005-05-26 Thread Tim Roberts
On Wed, 25 May 2005 21:15:42 +0800 (CST), yuan ye <[EMAIL PROTECTED]> wrote: >Hello everyone, >If you have ever used UltraEdit, you will know that it >can convert encoding from Unix/Mac to Dos. Does >anybody know how I can do it in Python without the >help of UltraEdit? For example, to convert th

[python-win32] dde.pyd always dies after exactly 16378 Requests

2005-05-26 Thread Ray Schumacher
In the attached .py test, I start an external program that provides data access via DDE. create a server do a number of CreateConversation-s, one for each channel make connections do lots of .Request on the connections I tried just one channel, one connection, still 16378, so it seems to be the t

[python-win32] Inserting a dictionary of lists into '__main__' of an embedded interpreter

2005-05-26 Thread quadric
Hi, I have an application that has an embedded interpreter. This application loads many DLL's and passes a PyObject * to each DLL that was gotten from the following call: PyObject * pmod = PyImport_AddModule("__main__") ; Later, in one of the many DLL's that interact with the embedded inte

Re: [python-win32] can dev-cpp's "winanim" example be duplicated withwin32gui etc?

2005-05-26 Thread R. Alan Monroe
> The internal "message loop" is built into win32gui in PumpMessages() - > internally we do that Get/Translate/Dispatch dance, and delegate the message > itself to a Python function via the Python "message map". For completeness > though I have just added GetMessage() - but it should only be used

Re: [python-win32] convert encoding from UNIX/MAC to DOS

2005-05-26 Thread Simon Brunning
On 5/25/05, yuan ye <[EMAIL PROTECTED]> wrote: > Hello everyone, > If you have ever used UltraEdit, you will know that it > can convert encoding from Unix/Mac to Dos. Does > anybody know how I can do it in Python without the > help of UltraEdit? For example, to convert the > encoding from Unix/Mac

Re: [python-win32] can dev-cpp's "winanim" example be duplicated withwin32gui etc?

2005-05-26 Thread Mark Hammond
> How feasible is it to write programs like the supplied example in pure > python, ideally without resorting to ctypes? (ctypes is bloody useful > but if I'm going to that amount of trouble I could just write plain C) It should be quite feasable. Obviously a few things would need to be done diffe

Re: [python-win32] Python 2.4:win32com:ADODB.Connection:py2exe:KeyError

2005-05-26 Thread Mark Hammond
EnsureDispatch will not generate in frozen applications.  You can specify 'typelibs' in the py2exe options dict.  The format is the same as passed to EnsureModule and printed by "makepy -i"  eg, to include the MSOffice typelib you could say:   py2exe_options = {     'typelibs': [    ('{