Introduction - If you have any usage issues, please Google them yourself
Windows Service application.
Shows (in source code) how to debug a windows service via #ifdef _DEBUG directive.
Also demonstrates updating Oracle and sending email inside a Windows Service