help with running programs with c++

This is a discussion on help with running programs with c++ within the C++ Programming forums, part of the General Programming Boards category; Hi, I'm new here, and not sure whether i'm in the right place for this, but i thought i'd give ...

  1. #1
    Registered User
    Join Date
    Oct 2006
    Posts
    1

    help with running programs with c++

    Hi,

    I'm new here, and not sure whether i'm in the right place for this, but i thought i'd give it a shot anyway!

    Basically i have a fortran program already written, that takes in the name of a text file as an input. I'm wanted to create a user interface to create this text file, and then i would have a button or something to enable me to then run the fortran program and input the file all from the user interface, and get rid of the need to manually run the fortran program.

    Firstly, is this even possible?! Is it difficult to program and get to work?! Does anyone have any suggestions or guidance on this.

    Thanks

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,853
    One part of it at least is pretty easy.
    http://faq.cprogramming.com/cgi-bin/...&id=1043284392
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Registered User
    Join Date
    Oct 2001
    Posts
    2,934
    >Firstly, is this even possible?!
    You can use the system command to run an external program. For example:
    Code:
    system("name_of_fortran_program");

  4. #4
    pwns nooblars
    Join Date
    Oct 2005
    Location
    Portland, Or
    Posts
    1,094
    While this is in the C++ forum, GUI in C++ is not something one picks up the first couple weeks in C++.

    I would recommend Perl with P/TK. Makes native looking interface, and is not very hard to get used to.

  5. #5
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    While this is in the C++ forum, GUI in C++ is not something one picks up the first couple weeks in C++.
    I did.
    "The Internet treats censorship as damage and routes around it." - John Gilmore

  6. #6
    Registered User SKeane's Avatar
    Join Date
    Sep 2006
    Location
    England
    Posts
    234
    Have you considered popen()/pclose()?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Recommend upgrade path for C programs
    By emanresu in forum C Programming
    Replies: 3
    Last Post: 11-22-2007, 07:32 AM
  2. Monitor That Another App is Running
    By CodeButcher in forum Windows Programming
    Replies: 1
    Last Post: 01-18-2007, 01:34 PM
  3. Newbie question: pointers, other program's memory
    By xxxxme in forum C++ Programming
    Replies: 23
    Last Post: 11-25-2006, 01:00 PM
  4. Running programs as Services
    By Unregistered in forum Windows Programming
    Replies: 2
    Last Post: 10-20-2001, 05:17 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21