Thread: Getting Output from an external process

  1. #1
    Registered User
    Join Date
    Jun 2005
    Posts
    14

    Getting Output from an external process

    I have seen your tutorial "How Do I... Run a program from within a program."
    Oh wait... perhaps I should describe what I am working on. I am working on an GUI IDE for g++. It will have auto-complete, syntax-highlighting...ect. I plan on using wxWidgets as my GUI. So I figured if the gui is platform-independant shouldn't everything else.
    Which brings me to my questions
    Q1. How do I... Run a program in a specific shell (OS independantly) such as an Editbox?
    Q2. How do I... Retrieve output form the child program (OS independantly) such as error message.

    I am trying to avoid using a bunch of #ifdef #endif.
    I don't care if it's C or C++ (if it's C I'll just wrap it in a class).
    Thanks in advance for your aid.

  2. #2
    Registered User
    Join Date
    Aug 2001
    Posts
    244
    are you aware how big your project is?

    e.g. you basically need to write a c++ parser for auto-complete and syntax highlighting
    (and im working on a c-parser right now - and that is hell already...)

    besides i think eclipse already features all that stuff for c++
    signature under construction

  3. #3
    Registered User
    Join Date
    Jun 2005
    Posts
    14
    This is more for my own advancement than to distribute for other users. Yes I do know how big it is.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. VC++ a POS
    By Welder in forum Windows Programming
    Replies: 40
    Last Post: 11-07-2007, 03:07 PM
  2. process programming
    By St0rM-MaN in forum Linux Programming
    Replies: 2
    Last Post: 09-15-2007, 07:53 AM
  3. error LNK2019: unresolved external symbol
    By Opel_Corsa in forum C++ Programming
    Replies: 3
    Last Post: 11-16-2006, 12:12 PM
  4. C++ std routines
    By siavoshkc in forum C++ Programming
    Replies: 33
    Last Post: 07-28-2006, 12:13 AM
  5. Base converter libary
    By cdonlan in forum C++ Programming
    Replies: 22
    Last Post: 05-15-2005, 01:11 AM