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

This is a discussion on Help.....need to know how to create a gui to execute a C script within the C++ Programming forums, part of the General Programming Boards category; I need to create a gui that will accept a number of text box inputs (with default values), have 2 ...

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

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.