Thread: Help.....need to know how to create a gui to execute a C script

  1. #1
    Registered User
    Join Date
    Jan 2003
    Posts
    14

    Help.....need to know how to create a gui to execute a C script

    I need to create a gui that will accept a number of text box inputs (with default values), have 2 browse for file toggles (to input tabular data from 2 input files), and have a submit/cancel button to execute the code. The output of the code is tabular data. I have been reading this forum for a couple of days before I decided to post. The only thing that I came across is some information about MFC. I have never heard of MFC, let alone know where to start. I should probably also state that I am not a programmer, but instead an engineer. The reason I want to create this gui is to circulate some code through our department in an easy to use format. Currently it is text driven, and the user is required to have a c compiler to execute it. I have been successful in importing the code to visual c++ and creating an *.exe file, but then the input file names have to be hardcoded into the *.exe.......... not very user friendly. Thanks in advance for the help

  2. #2
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    but then the input file names have to be hardcoded into the *.exe..........
    Ever tried cin to have the user enter a filename?

    Anyway, since windows programming is a pretty large topic I can only point you to a windows api tutorial:
    http://sunlightd.virtualave.net/Windows/

    There are even more if you click on links directly in www.cprogramming.com.
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  3. #3
    Registered User
    Join Date
    Jan 2003
    Posts
    14
    Originally posted by Magos
    Ever tried cin to have the user enter a filename?

    Anyway, since windows programming is a pretty large topic I can only point you to a windows api tutorial:
    http://sunlightd.virtualave.net/Windows/

    There are even more if you click on links directly in www.cprogramming.com.

    I was hoping to keep it as user friendly as possible.... to avoid misktakes with typing long file names. I will check the links.

  4. #4
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    MFC is a class library that wraps around some of the functionality of the Windows API. I would always advocate learning to use the API before fiddling with a class library. The Win32 API, (API Applications Programming Interface), allows you to tell Windows to do things for you. If you want an edit box for example, you do not have to create it by hand, their are routines/structures that do that for you, the API is what you use to make that happen.

    A class library is an object oriented way of doing much the same thing. Since you are not a programmer, that is probably meaningless to you, but at least you now know enough to try and bluff it!

    Windows programming is a bit different than programming to a character console.

    Attached is a totally useless program that creates a single edit box on a window. Have a look at it, and maybe browse a few tutorials. If you get stuck, ask on the Windows Specific board. Good luck.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  5. #5
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    Continued on the Windows specific board.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. win32 GUI components
    By abraham2119 in forum Windows Programming
    Replies: 5
    Last Post: 06-18-2009, 10:18 AM
  2. Script in games
    By Shakti in forum Game Programming
    Replies: 7
    Last Post: 09-27-2006, 12:27 AM
  3. Messages and global scripts?
    By suzakugaiden in forum C++ Programming
    Replies: 11
    Last Post: 02-18-2005, 11:38 PM
  4. C++: Reference Book, GUI, Networking & Beyond
    By kuphryn in forum C++ Programming
    Replies: 4
    Last Post: 11-10-2001, 08:03 PM
  5. GUI (Graphical User Interface) Help Needed
    By Unregistered in forum C++ Programming
    Replies: 1
    Last Post: 10-11-2001, 10:35 AM