Solved

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

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
fizzArray2 challenge 1 79
Copying WordPress Pages 5 82
Modbus - whats the maximum I can store in one register? 4 79
Need some help with Microsoft Visual Studio C++ 2003 5 60
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
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…
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.

776 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