CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2011
    Location
    Rochester, NY
    Posts
    2

    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!!!

  2. #2
    Join Date
    Jul 2010
    Posts
    88

    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.

  3. #3
    Join Date
    Feb 2002
    Posts
    4,640

    Re: putting a GUI wrapper around console app

    You could also use CreateProcess and redirect stdin, stdout, and stderr.

    Viggy

  4. #4
    Join Date
    Mar 2010
    Location
    Melbourne Australia
    Posts
    454

    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
  •  





Click Here to Expand Forum to Full Width

Featured