Re: [python-win32] How to return dict from Python COM

2006-07-24 Thread Tim Roberts
On Mon, 24 Jul 2006 03:15:30 +0530, "hari haran" <[EMAIL PROTECTED]> wrote: >Hi, >How can I create a COM compatible dictionary. > > There is no such thing. Visual Basic and VC++, for example, have no native "dictionary" type. >So The python code has to be modified to return a Com compatible d

[python-win32] build on Linus, install on Windows: site packages not registered

2006-07-24 Thread Dean Allen Provins
Hello; I built a code on Linux and moved it to Windows successfully a month or so ago. The user asked for a change, and after re-arranging the code and making the alterations, tried to re-send it. It gets there, but the 2 site packages aren't registered. The command used to build the Windows in

[python-win32] setting access to Windows services

2006-07-24 Thread Les Schaffer
I am having a hard time setting up non-Administrator access to MySQL service START|STOP capabilities. been reading MSDN and python-win32 and ActiveState docs for a couple days, and am stuck. can anyone see a problem here? with the SetNamedSecurityInfo call, i get a Error 1069: The service did not

[python-win32] setting access to Windows services

2006-07-24 Thread Les Schaffer
well, actually it did work, once i uninstalled the service, and re-installed it without the attempt to set the acccount name in the CreateService call, made elsewhere. maybe someone will find my code helpful for getting Services running under non-Admin rights. les schaffer ___

Re: [python-win32] How to return dict from Python COM

2006-07-24 Thread Rodrigo Strauss
To use a Scripting.Dictionary, here goes an example code: >>> from win32com.client import Dispatch >>> d = Dispatch('Scripting.Dictionary') >>> d.Add('key1', 'Value1') >>> d.Add('key2', 2) >>> d.Add(3, 'Value3') Just return the object 'd' from your python COM object. Rodrigo Strauss On 7/23/06

[python-win32] Re: setting access to Windows services

2006-07-24 Thread Roger Upole
Les Schaffer" wrote: >I am having a hard time setting up non-Administrator access to MySQL > service START|STOP capabilities. been reading MSDN and python-win32 and > ActiveState docs for a couple days, and am stuck. can anyone see a > problem here? > > with the SetNamedSecurityInfo call, i get a

Re: [python-win32] IPC between Python and a win32 process

2006-07-24 Thread Mark Hammond
> I have a win32 application written in C that does some background > processing (process1). Users can have some limited interaction with > the C application via a python Gui running in a separate process > (process2). What is the easiest way for the C application and the > python Gui to communicat