Solved

How to convert a dialog based MFC application to a windows service

Posted on 2008-06-23
3
1,398 Views
Last Modified: 2013-12-14
i have dialog based MFC application in vc++6.0.(Doesn have .net framework)
Can i convert into a process.
Is ther any tool for that?

0
Comment
Question by:manajitrath
  • 2
3 Comments
 
LVL 31

Accepted Solution

by:
Zoppo earned 125 total points
ID: 21846552
Hi manajitrath,

it is not easy to convert a dialog base app to a service, since a service is just a console application which has no windows message queue.

But it is possible to implement a service which itself starts the dialog based application - i.e. you can find sourcecode for this at http://www.codeproject.com/KB/system/xyntservice.aspx

Hope that helps,

ZOPPO
0
 

Author Comment

by:manajitrath
ID: 21854871
thanks for the reply.

i have gone through the code .it worked
But , Does the application work as a service once it is included in the ini ? will it have the property of a service?

 
0
 
LVL 31

Expert Comment

by:Zoppo
ID: 21854919
Well, hard to say what you mean with 'property of a service' - at least it can be started/terminated without need to be logged in as a user. And it should be able to retrieve windows messages.

ZOPPO
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org Go to that link and select download selenium in the right hand columnThat will then direct you to their download page.From that page s…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

910 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now