putting a GUI wrapper around console app
I have created a console application in VC++ that connects to a digital camera, takes an image, zips the file and emails it to someone. I now need to wrap a VC++ GUI wrapper around the console app. I have created the basic framework of the GUI, what I want to do is now click a single button that then runs the console app, with the feedback that used to be in the DOS terminal window now displayed in the form. But I am at a loss as to how to combine the two. Any assistance would really be appreciated, I am new to C++ programming.
Thanks in advance for any helping hints or suggestions!!!
Re: putting a GUI wrapper around console app
The best thing would be to move the application to a component project that can be called from a higher language. If you use .NET then this should be quite safe and easy but ActiveX with ATL is to too messy for the task.
Re: putting a GUI wrapper around console app
You could also use CreateProcess and redirect stdin, stdout, and stderr.
Viggy
Re: putting a GUI wrapper around console app
The way I have done on the past is through QT ples .see http://qt.nokia.com look for a class QProcess in the help files , I have developed many programs to run console application from a gui , very easy to use cheers.