Link to home
Start Free TrialLog in
Avatar of samroyc
samroyc

asked on

Toggle between Console/GUI mode

I have a MFC application.I would like to be able to toggle between the GUI mode and Console mode.I have
figured out how to open a Console,but now when I run the application it simulataneously opens a Console as well.
Is it possible to have a button so that the Console would open only when I desire?
Also how I can use all the functionalities in my application from the console,right now only ctrlC works!
Thank you for any help and suggestions.
Avatar of Axter
Axter
Flag of United States of America image

Hi samroyc,
What is your motivation behind this?

David Maisonave :-)
Cheers!
Avatar of samroyc
samroyc

ASKER

the application will be run by users remotely to control a device.I need to be able to get to the controls using console,
as a "superuser",just in case somethings go wrong or the prg crashes while communicating with the device etc...
So I need an option where in the console is also available.
Thanks
>>So I need an option where in the console is also available.

Do you want this option when the program first starts up, or after there's a display?

IMHO, it would be better for a super user to have this feature via a special super user GUI window.
Avatar of samroyc

ASKER

After a display is fine.
**IMHO, it would be better for a super user to have this feature via a special super user GUI window.**
I am not sure if I uderstand what this means,another application,or just another control button that opens
another window?
Thank you for your interest.
 
 
   
 
ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
>>I am not sure if I uderstand what this means,another application,or just another control button that opens
>>another window?

Check out the following link:
http://www.codeguru.com/Cpp/controls/controls/coolcontrols/article.php/c8589/

The above project is an example of using a GUI window to enter command lines, like you would in console mode.