tags:

views:

57

answers:

3

I want to develop a Windows service and choose ATL service as I want to use native C++, but it seems there are not much materials on this topic, I only found some concept description here, which is not enough for me to develop my service application.

Do you know any tutorials or samples on developing a ATL service?

Thanks so much.

+1  A: 

You're correct. There isn't. The last book I brought on ATL is out of print and unless you're familiar with COM I might suggest this is not the best way to go. You can write a Windows Service without ATL of course. VS2005 even has a wizard for this very purpose.

The last time I wrote a NT service that wasn't C# (which works well) I used a sample class from CodeProject. Some 10 years ago alas.

ExpatEgghead
A: 

I think you should search for COM Server ATL, then you should find a lot of examples

It sounds as if you want to write a COM server, otherwise you could write the service without ATL if you want.

Anders K.
A: 

I am afraid there would be little chance to have an better answer as ATL is really not that popular now. But to make this post valuable to others who might meet this problem in the future, I would like to give my answers based on what I found:

Yes, it is really had to find materials on developing ATL service, if what you want is just to write a Windows service application in Native C++, following links might be helpful:

lz_prgmr
Brings back memories.
ExpatEgghead