Re: [python-win32] What does pythoncom interface look like?

2017-01-09 Thread Tim Roberts
Kurt Eilander wrote: > I'm trying to create a win32com server that implements a standard > interface (IExtractImage) > > I've added the iid to _com_interfaces_ and the method names to > _public_methods_, but now I'm at a complete loss how to implement them. > > For instance, given the method, > HRE

Re: [python-win32] Problem building pywin32 for Python 3.5 on VS2015 with Windows SDK 10

2017-01-09 Thread Chris Helvig
Update on this. I finally stumbled across the following webpage: http://around-the-corner.typepad.com/adn/2014/10/building-pywin32-for-motionbuilder-2015.html So I just plowed ahead with changing variable names and commenting stuff out until it worked. This was 3 weeks ago now, though. Looking t

[python-win32] automatically restart python service after crash

2017-01-09 Thread Aaron Burrow
I developed a python service using win32serviceutil.ServiceFramework and PythonService.exe. If the service crashes (eg, an unhandled exception is raised) I want the service to restart. So, I configured the service to restart using `ChangeServiceConfig2`. Code looks like this. ``` import win32ser