473,387 Members | 3,684 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Question and looking for good example of Windows Service

Hi there.
I just installed VC++ 2005. I was using VC++ 6 before.
So I need to create a Windows Service. I tried to use wizard but code that
was generated seems to be a .Net related. In fact I expected that VC++ mean
normal VC++ just like it was in the early days. So currently I have two
questions:
1. How to create in VS 2005 Widows Service project that will be running just
ordinar VC++.
2. And second is there some good example of how to make a windows service.

Since I tried to search on google and response was to small. In fact I found
very few examples of windows service using VC++ 2005. So it looks like this
type of project is less common then just ASP.NET stuff... :-(

Thanks.

German Koninin
May 16 '06 #1
4 1243
> I just installed VC++ 2005. I was using VC++ 6 before.
So I need to create a Windows Service. I tried to use wizard but code that
was generated seems to be a .Net related. In fact I expected that VC++
mean normal VC++ just like it was in the early days. So currently I have
two questions:
1. How to create in VS 2005 Widows Service project that will be running
just ordinar VC++.
2. And second is there some good example of how to make a windows service.


Hi,
I have always used the service example in the platform SDK. you can download
the SDK from the microsoft website
it is very simple and explains very clearly how to create a win32 service
application.

--

Kind regards,
Bruno van Dooren
br**********************@hotmail.com
Remove only "_nos_pam"
May 16 '06 #2
Ok, is it possible to use #import and MFC classes there?
"Bruno van Dooren" <br**********************@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
I just installed VC++ 2005. I was using VC++ 6 before.
So I need to create a Windows Service. I tried to use wizard but code
that was generated seems to be a .Net related. In fact I expected that
VC++ mean normal VC++ just like it was in the early days. So currently I
have two questions:
1. How to create in VS 2005 Widows Service project that will be running
just ordinar VC++.
2. And second is there some good example of how to make a windows
service.


Hi,
I have always used the service example in the platform SDK. you can
download the SDK from the microsoft website
it is very simple and explains very clearly how to create a win32 service
application.

--

Kind regards,
Bruno van Dooren
br**********************@hotmail.com
Remove only "_nos_pam"

May 17 '06 #3
> Ok, is it possible to use #import and MFC classes there?

The examples are just native C.
change the file extensions to cpp so that it is compiled as C++ code.
that will enable you to do anything you can do in a regular C++ program.
You will have to do some configuration because the examples are built via
make files, not project files.

maybe it is simpler to start a new MFC console application project and add
the service code to it. that way you do not have to configure the project
settings manually.

--

Kind regards,
Bruno.
br**********************@hotmail.com
Remove only "_nos_pam"
May 17 '06 #4
MFC console application is not available in VC++ 2005 so far. So I'll try to
make ordinar MFC application and integrate service methods there.
"Bruno van Dooren" <br**********************@hotmail.com> wrote in message
news:E9**********************************@microsof t.com...
Ok, is it possible to use #import and MFC classes there?


The examples are just native C.
change the file extensions to cpp so that it is compiled as C++ code.
that will enable you to do anything you can do in a regular C++ program.
You will have to do some configuration because the examples are built via
make files, not project files.

maybe it is simpler to start a new MFC console application project and add
the service code to it. that way you do not have to configure the project
settings manually.

--

Kind regards,
Bruno.
br**********************@hotmail.com
Remove only "_nos_pam"

May 18 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

44
by: lester | last post by:
a pre-beginner's question: what is the pros and cons of .net, compared to ++ I am wondering what can I get if I continue to learn C# after I have learned C --> C++ --> C# ?? I think there...
2
by: Adam Norris | last post by:
I am trying to accomplish the following task and need to be pointed into the right direction. I would like to create a C#.NET windows service that listens on a specific port for a message to be...
6
by: Mike | last post by:
Lets just say my app is done HOO HOO. Now, I'm accessing the database via a web service and one thing i noticed that my app is running real slow. When I first started working on the app is ran...
5
by: Tom | last post by:
Using multiple System.Timers.Timer objects in a Windows Service for performing multi-thread activities in a periodic fashion. Timers are AutoReset=false, to only have a single timer execution...
7
by: D. Patrick | last post by:
I need to duplicate the functionality of a java applet, and how it connects to a remote server. But, I don't have the protocol information or the java source code which was written years ago. ...
2
by: Ken Ross | last post by:
I'm in the early stages of working up the design for a large .Net web application and want to make sure that we have the best possible physical architecture to support the logical architecture and...
14
by: JoeC | last post by:
I have been writing games and I also read about good programming techniques. I tend to create large objects that do lots of things. A good example I have is a unit object. The object controls...
19
by: frankiespark | last post by:
Hello all, I was perusing the internet for information on threading when I came across this group. Since there seems to be a lot of good ideas and useful info I thought I'd pose a question. ...
3
by: vmantrana | last post by:
Hi guys: I have a question about windows services, I have been trying to find the answer but only found the same question from 3 years ago with no response. I wish you guys can help me with...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.