Solved

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

Posted on 2008-06-23
3
1,373 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 30

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 30

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now