Writing a program under GNU/Linux for MS Windows.
Nicol van der Merwe
aspersieman at gmail.com
Sun Jul 20 13:24:37 CEST 2008
On 7/18/08, Levi Campbell <levicc00123 at gmail.com> wrote:
> Hi, I'm trying to write a program for a friend of mine who uses
> windows but I use GNU/Linux. I know you can use mingw and link to the
> python dll, but is there a way to create a win32 service under Linux?
(First off, I apologise if I sound a bit incoherent, but I've got flu
and I'm on medication :( )
After having just completed a project where had to write a windows
service I can offer you some insight. Writing of a service on windows,
as opposed to a daemon on linux/unix in python - you will need to use
the pywin32 module (http://sourceforge.net/projects/pywin32/)
The libraries in the pywin32 package you will need to use are most
likely going to be the followowing:
4) win32con and
The fact that the pywin32 package is just an interface to the win32api
means (as far as I understand) that [sadly] you will need to develop
this in windows.
Some stuff you might want to check out:
(I don't recommend this one - a bit dated)
(this is the template for the win32 service i finally used.)
Also as an interesting alternative, something I recently came across -
you can create a windows service, using the web2py web framework
(http://mdp.cti.depaul.edu/AlterEgo/default/show/77). This could save
you some time, as all the libraries/modules are already set up for you
in the source download
Hope this helps.
More information about the Python-list