473,396 Members | 1,929 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,396 software developers and data experts.

Windows Service - The Best Choice?

Hi All,

Can anybody tell me which language is the better choice for creating
"Windows Service" VB.Net, C# or C++

If somebody can point to an article that will be great help.

Thanks.
Jul 11 '06 #1
4 1254
What to choose is up to u.

See managed sample there
http://www.codeproject.com/dotnet/si...owsservice.asp

Hi All,

Can anybody tell me which language is the better choice for creating
"Windows Service" VB.Net, C# or C++

If somebody can point to an article that will be great help.

Thanks.
--
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche

Jul 11 '06 #2
I think it depends on what you want to do.

Generally, if you want your service to perform tasks that can be done with
the runtimes or 3rd party components that uses .NET, it's better to program
it to run in managed environment. (Memory leakage is especially bad for
services as they trend to run longer than other applications)

But if you have to use libraries that uses callback functions, I'd think C++
is a better choice.

"Khalid" <mk*****@hotmail.com¼¶¼g©ó¶l¥ó·s»D:uC************* *@TK2MSFTNGP05.phx.gbl...
Hi All,

Can anybody tell me which language is the better choice for creating
"Windows Service" VB.Net, C# or C++

If somebody can point to an article that will be great help.

Thanks.

Jul 11 '06 #3
Okay, Let me rephrase, I have a windows service written in VB.Net and it
uses a Third party API which is COM based. Now i want to know are there any
benifits of transferring this to (VC++.Net or C++ ) or to C# OR are there
any problems that we will face in VB.Net or if converted to C# instead of
any C++ version.

Thanks for your responses.

"Lau Lei Cheong" <le****@yehoo.com.hkwrote in message
news:uU**************@TK2MSFTNGP03.phx.gbl...
>I think it depends on what you want to do.

Generally, if you want your service to perform tasks that can be done with
the runtimes or 3rd party components that uses .NET, it's better to
program it to run in managed environment. (Memory leakage is especially
bad for services as they trend to run longer than other applications)

But if you have to use libraries that uses callback functions, I'd think
C++ is a better choice.

"Khalid" <mk*****@hotmail.com>
¼¶¼g©ó¶l¥ó·s»D:uC**************@TK2MSFTNGP05.phx.g bl...
>Hi All,

Can anybody tell me which language is the better choice for creating
"Windows Service" VB.Net, C# or C++

If somebody can point to an article that will be great help.

Thanks.


Jul 11 '06 #4
If it runs well, I even don't bother transferring it.

If it's originally written in VB.Net, I would transfer to C#. Those two
are really just different languages based on CLR, and when compiled,
they are compiled to the same IL code.

Khalid wrote:
Okay, Let me rephrase, I have a windows service written in VB.Net and it
uses a Third party API which is COM based. Now i want to know are there any
benifits of transferring this to (VC++.Net or C++ ) or to C# OR are there
any problems that we will face in VB.Net or if converted to C# instead of
any C++ version.

Thanks for your responses.

"Lau Lei Cheong" <le****@yehoo.com.hkwrote in message
news:uU**************@TK2MSFTNGP03.phx.gbl...
>I think it depends on what you want to do.

Generally, if you want your service to perform tasks that can be done with
the runtimes or 3rd party components that uses .NET, it's better to
program it to run in managed environment. (Memory leakage is especially
bad for services as they trend to run longer than other applications)

But if you have to use libraries that uses callback functions, I'd think
C++ is a better choice.

"Khalid" <mk*****@hotmail.com>
???????:uC**************@TK2MSFTNGP05.phx.gbl.. .
>>Hi All,

Can anybody tell me which language is the better choice for creating
"Windows Service" VB.Net, C# or C++

If somebody can point to an article that will be great help.

Thanks.

Jul 11 '06 #5

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

Similar topics

2
by: Sharon | last post by:
I've had an Access 2000 app running successfully for many months on both Windows XP and Windows 2000. Recently when my Windows 2000 users call a particular report, they get first a dialog...
7
by: Will | last post by:
I'm working on a C# Windows Service that needs to monitor serial port communication. Because the .Net framework does not include support for serial communications, I've decided to use the...
1
by: Larry Page | last post by:
Greetings, I'm using remoting to execute commands on a remote machine. My original testing used basic console client and server apps containing a common interface, which I built as a seperate...
15
by: Untitled | last post by:
I have an ASP .NET web application that displays information. At the same time, i have a web service that collects information from various client applications. This data needs to be processed...
2
by: Jeff | last post by:
Please note this is NOT a rant or complaint! And yes, I'm over-simplifying, but intentionally. Here goes... With ASP.NET Web applications I like that I can access data from anywhere without...
2
by: shyam | last post by:
I have a C++ COM based windows service which have more than 30k lines of code and which is stablized over years. We need to take the advantage of the ..NET framework for this project, especially...
8
by: =?Utf-8?B?TWlrZVo=?= | last post by:
How Can Windows Service Application Reatarts itself? Thanks.
5
by: dm3281 | last post by:
I'm really starting to hate writing services -- or trying to, anyway. Why do I need to rename my project to the service name? Why do I need to set the "ServiceName" property to my service name?...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.