timed polling of a database in a W2K service
Posted on 2002-03-31
Using the ATL Wizard in VC++6 I've created a service. I'm guessing that my code has to go in the run() method.
My first question is:
If all I want my service to do is after a set time interval get some data from the database. How do I loop?
If I put a while loop in the run method then i will effectively lock the service from communicating with the SCM.
Any help or small examples would be great, I do have a book on it but as of yet I've not found anything regarding this, and I am pushed for time.
Can ATL system services support MFC class usage?