Re: creating an ATL COM service
I'll also add the only good book on NT services I know of:
"Professional NT Services" by Kevin Miller, Wrox Press
http://www.amazon.com/Professional-NT-Services-Kevin-Miller/dp/1861001304
It details some bugs and gotchas with ATL services in one of the
later chapters.
--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@mvps.org
MVP VC FAQ: http://vcfaq.mvps.org
=====================================
"Brian Muth" <bmuth@mvps.org> wrote in message
news:e$e2gH1gHHA.4208@TK2MSFTNGP03.phx.gbl...
"Rohit Kumar" <RohitKumar@discussions.microsoft.com> wrote in message
news:3E7C356A-7BA9-47E1-BA67-F0892268F4B4@microsoft.com...
Can anyone please help me or give me some sample code? I need to create
an
ATL COM service (not a DLL) which has a dummy interface.. say. add 2
numbers.. After creating the service, i want to register it as a windows
service. Then i want to create a client which connects to this service
and
uses the interface.. (adds 2 numbers) I have searched online and there is
not
a decent article which explains the process step by step... Any help in
this
regard will be very useful.
Any sample code for creating and using the service will be helpful...
Thanks in advance!!!!
Usually security related questions arise along the way, and I strongly
suggest it's best to purchase a book. I believe both of the following have
step-by-step examples, and you can confirm this at your local bookstore:
http://tinyurl.com/38m7hj
http://tinyurl.com/39tbg8
I assume you have already built an ATL COM DLL, as described here:
http://msdn2.microsoft.com/en-us/library/599w5e7x(VS.80).aspx
If you simply choose to build a service, rather than a DLL, what problems
do you run into?
Brian