Convert a C++ program to a Windows service?
There’s a good example on how to set up a minimal service on MSDN. See the parts about writing the main function, entry point and also the example code. Once you’ve got a windows service built and running, you’ll discover the next major gotcha: it’s a pain to debug. There’s no terminal (and hence no … Read more