Is there any development materials about ATL service
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.
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.
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:
- A Windows Service Application
- Creating a Simple Win32 Service in C++
- CNTService
精彩评论