|
-
January 10th, 2011, 08:00 AM
#1
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!!!
-
January 10th, 2011, 08:59 AM
#2
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.
-
January 11th, 2011, 12:18 PM
#3
Re: putting a GUI wrapper around console app
You could also use CreateProcess and redirect stdin, stdout, and stderr.
Viggy
-
January 19th, 2011, 11:57 PM
#4
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|