How to convert a GUI app to a Command Line App?

Hi, I am working on converting a GUI Application to a Command Line application on VC++. The code is highly coupled with the GUI. I thought of hiding the GUI and automatically triggering the events. Is it possible? What can be the other possible ways so that it requires minimum effort. Please note that the code is written in MFC.
Thanks
[341 byte] By [connossieur] at [2007-11-20 11:49:56]
# 1 Re: How to convert a GUI app to a Command Line App?
What events do you want to trigger? What is the console app supposed to do, as opposed to the other one?
cilu at 2007-11-11 4:02:43 >
# 2 Re: How to convert a GUI app to a Command Line App?
Not really enough to go on from what you've said. Is it a dialog app, SDI, MDI, does it use MFC? If it has a GUI, I assume it takes user input. How would you replace that?
GCDEF at 2007-11-11 4:03:43 >