In Visual C++ under Visual Studio.NET, a few quick questions:
- How do I add an interface to a service? Take MSN Messenger for example. It has an icon running in the tray (while I'm on the subject, what do I have to do to my service to get that icon in the tray?), and when you click on it (or right-click for a menu), a form pops-up. By definition, a service does not have an interface, so I was thinking that it might not be as simple as adding a form to the project and making an event handler call it's "show" function.
- I figured out quite quickly where to add my start up and close down code (the function names onStart and OnClose gave it away), but where do I put the code I want the service to be executing in the background.