How to convert MFC dialog based application into a simple process without any GUI

J

Jigar Mehta

Hye,
Jigar Mehta from India. I have one application of MFC - dialog based
application. Now I don't want GUI in that. It is a pure multithreaded
process which will run continuously and does some task. How to remove the
dialog before it loads itself... (It is to be noted that I have to have MFC
support in the application..)

In short, how to make GUI less windows process (core process that does
not create any window at all - so, hiding window (after creation) is not the
solution)..

Thank you..
 
D

David Lowndes

Jigar Mehta from India. I have one application of MFC - dialog based
application. Now I don't want GUI in that. It is a pure multithreaded
process which will run continuously and does some task. How to remove the
dialog before it loads itself... (It is to be noted that I have to have MFC
support in the application..)

In short, how to make GUI less windows process (core process that does
not create any window at all - so, hiding window (after creation) is not the
solution)..

You've started from the wrong point really - however, just check the
code in the InitInstance - which is where the main dialog is created
and shown (DoModal).

Dave
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top