Sample of a wxWidgets-based Windows service
This sample of a Windows service was written using wxWidgets 3.0.2 and tested on Windows 7. I'm sure it will work on some other versions as well. The Code::Blocks IDE was used, which explains the project file *.cbp in the folder.
The code should be pretty well commented, although Windows services are not terribly easy to follow.
The code was built off of other code and information from these two sources, as well as many trips to the wxWidgets documentation and StackOverflow.
https://forums.wxwidgets.org/viewtopic.php?f=20&t=4375
http://www.codeproject.com/Articles/499465/Simple-Windows-Service-in-Cplusplus
I hope someone finds this useful.
Tim