Link to home
Start Free TrialLog in
Avatar of thomasmathewktm
thomasmathewktm

asked on

To run a VC++ project as a service in Win2000

Hai,
I have created a project in VC++6.0.I have to run this project as a service in Windows2000.How can i convert my project into a windowless service.
 
Avatar of AlexFM
AlexFM

You can start with some generic service template and move your code to the new project. There are number of such templates in CodeGuru and CodeProject, this is one of them:

http://www.codeproject.com/system/serviceskeleton.asp

Jeffrey Richter's book "Programming Server-Side Applications for Microsoft Windows 2000" (Microsoft Press) contains also such template in source code (I beleive this is the a best of them).
Avatar of jkr
I'd suggest taking a look at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndllpro/html/msdn_threads.asp ("Creating a Simple Win32 Service in C++")
jkr, your link points to "Multithreading for Rookies" article. I beleive you mean something else...
ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
This question has been abandoned. I will make a recommendation to the moderators on its resolution in a week or two. I appreciate any comments that would help me to make a recommendation.

In the absence of responses, I may recommend DELETE unless it is clear to me that it has value as a PAQ. Silence = you don't care.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Udil
EE Cleanup Volunteer
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Grade of B to jkr.

Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Ged
EE Cleanup Volunteer