Originally Posted by
D_Drmmr
If you want to have a program with a GUI, then you need to use some GUI library, be it Win32, MFC, Qt, wxWidgets or whatever. You need to be able to draw buttons, respond to mouse clicks, etc. You can do all that with the GUI library you choose.
The next step will be to create and place controls based on some specification that is not known until runtime. This should be pretty straightforward.
Finally, you need to execute some script or function (also not known until runtime) when a button is clicked, etc. For this, you will first have to catch the button being clicked with the GUI framework you've chosen and then implement a mechanism with which you can execute some script or function defined at runtime. It's possible to do this by calling some functions in a delay-loaded DLL, but that can be pretty hard to get right, depending on what the code has to do exactly. It's also possible to use some scripting language in which you define some functions that can be called by your C framework when a button is clicked, etc. This code could then call some functions that are exposed by your C framework to do something useful.