?
Solved

Building Windows Service

Posted on 2005-04-05
3
Medium Priority
?
177 Views
Last Modified: 2010-04-23
1) What are the steps of building Windows Service? It should have public methods

2) What are the steps of creating Windows application that communicate with this Windows Service and call its public methods?
0
Comment
Question by:f_asmaa
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 

Accepted Solution

by:
Cleavitt76 earned 1000 total points
ID: 13710056
1) Here is a link to a turorial on creating a basic windows service in VB.net.  Other than installing the service, the programming part is not much different than programming a normal windows application.

http://abstractvb.com/code.asp?A=1082

2) .Net does not allow executables (a windows service is an executable) to have publicly accessable methods or COM as far as I know.  You will need to include a DLL in your solution and put your public methods/properties in the DLL.  The windows service exe can then use the DLL as an interface to the outside world.  For example, you could call a method of the DLL from your outside application.  That method would simply fire an event.  That event would be handled by either the windows service exe or by code in the DLL itself.

0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question