Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a windows service which launches one application. this application has some COM component provided which can be used to perform different operations on the application. by using these COM components one can Login into application, Create new Patient, Select Patient, select Test etc. All these COM Methods working fine with Console Application. but when i try doing the same thing with windows service it is not working. I am able to launch the application by making it interactive but still COM component are not working. when i looked into the application i noticed that Patient is getting added to the application but the process is not visible. it does not login and selects the patient. Is there any way I can achieve this. please help!!

What I have tried:

Tried interactive windows service but only launches the applications and COM component working is not visible
Posted
Comments
F-ES Sitecore 29-Mar-17 8:12am    
Services aren't suitable for things that require interaction or things to be visible on the desktop. Services don't have access to the desktop, and remember they still run when no-one is logged in at all.
uday vichare 29-Mar-17 8:14am    
OK..i get that..but is there any any way to achieve this..?
F-ES Sitecore 29-Mar-17 8:18am    
We don't really know what it is you're trying to achieve. Scheduled tasks are possibly the next best thing you can use.
uday vichare 29-Mar-17 8:24am    
I have a application which have provided me some COM Components to interact with this application. I want to use these COM components in my windows service.
for Example using Login method of the COM class i can login into the application. By using Select Patient Method i can select a certain patient in the application. when I tried this with the Console application it worked fine but it is not working with windows service.
CHill60 29-Mar-17 8:35am    
Windows Services are not suitable for things that require user interaction or things that need to be visible on the desktop.
Why are you trying to make it a service?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900