• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 285
  • Last Modified:

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.
 
0
thomasmathewktm
Asked:
thomasmathewktm
1 Solution
 
AlexFMCommented:
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).
0
 
jkrCommented:
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++")
0
 
AlexFMCommented:
jkr, your link points to "Multithreading for Rookies" article. I beleive you mean something else...
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
jkrCommented:
You are right - that's weird, when I open it via my bookmark (same URL), I get to the services article (guess where I copied the title from :o) - however, when I use the above link... Have to check my proxy...

BTW, the correct URL is http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndllpro/html/msdn_ntservic.asp
0
 
udilCommented:
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
0
 
Kyle AbrahamsSenior .Net DeveloperCommented:
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
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now