Solved

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

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
no14 challenge 14 70
Insert several multiple frames into a single mainframe 3 66
Fibonacci challenge 11 132
wordcount challenge 11 132
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

840 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