Re: [python-win32] passing c structure into python function

2010-01-13 Thread a h
Hi thanks for your response in the last piece of c code i want to know how do i pass structure into python function in c. I have tried to call a python function which takes string as parameter. i have passed string parameter as : const char *str_pArgs = hello; pArgs = PyTuple_New(1); pValue =

Re: [python-win32] Guaranteed cleanup code execution?

2010-01-13 Thread Gabriel Genellina
En Mon, 11 Jan 2010 23:33:23 -0300, Mario Alejandro Vilas Jerez mvi...@gmail.com escribió: But what I think you're really looking for is the Service Control Manager: http://msdn.microsoft.com/en-us/library/ms685150(VS.85).aspx The ControlService API lets you stop services (among other

Re: [python-win32] 'No such interface supported' question

2010-01-13 Thread Gabriel Genellina
En Fri, 08 Jan 2010 00:25:15 -0300, Gareth Walters gar...@maptel.com.au escribió: I have done some python work before but I new to the COM stuff. I am trying to Create a MXD and layers to it from python. I have been looking at this PythonNet stuff and it is all getting a bit blurry. I was

Re: [python-win32] passing c structure into python function

2010-01-13 Thread Tim Roberts
a h wrote: thanks for your response in the last piece of c code i want to know how do i pass structure into python function in c. I have tried to call a python function which takes string as parameter. i have passed string parameter as : const char *str_pArgs = hello; pArgs =

[python-win32] Getting a list of task buttons or tasks/windows in the alt-tab list?

2010-01-13 Thread Lincoln Yeoh
Hi, With python win32 is there a way to get only the windows that are represented by the buttons of the Windows taskbar (or the windows listed in the alt-tab list)? I have found various ways of doing so, but I can't seem to get them to work with Excel's windows. From what I observe (I may

Re: [python-win32] 'No such interface supported' question [SEC=PERSONAL]

2010-01-13 Thread Andrew MacIntyre
Gareth Walters wrote: Ø I have done some python work before but I new to the COM stuff. I am trying to Create a MXD and layers to it from python. I have been looking at this PythonNet stuff and it is all getting a bit blurry. Ø I was wondering if you could give me some pointers to