Click here to Skip to main content
15,893,161 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,


I want to make a terminal in gui. Same like MATLAB command window.
It should function like an interpreter. Pls tell which gui library should I use or
use Win32 API directly?
(I use MinGW gcc)

Thanks.
Posted

There's really two big and entirely different portions to this...
0. The graphical portion.
1. The actual interpreter.

...as may or may not be obvious, the meat of it is in the interpreter. You're essentially developing a scripting language interpreter. If you want to see how the concept works a bit more directly (minus the graphics of it all), play around with Octave a little bit. Raw Octave doesn't have a GUI front-end like Matlab does, so you can see how it works directly from a terminal window. There are also GUI front-end packages that you can install onto Octave to make it "look" more like Matlab but essentially they both work the same way.

Since the meat of the project lies in the interpreter in the background, perhaps you should probably be thinking about how to implement your interpreter first and not really start from the front-end, which is the GUI.

Anyway, that's my recommendation. For the actual GUI, you can use anything that helps you make pretty windows like WinAPI directly, MFC, Qt, GTK, whatever you'd like. Happy coding!
 
Share this answer
 
You might create a console application (it would be simple).
If you really want a GUI then, yes, you may use directly the Win32 API. There are other options, however, like, for instance, QT[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900