Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ C GUI
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 27-Nov-12 6:10am
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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!
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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[^].
  Permalink  

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



Advertise | Privacy | Mobile
Web03 | 2.8.1411023.1 | Last Updated 27 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100