Click here to Skip to main content
Rate this: bad
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)
Posted 27-Nov-12 6:10am
Rate this: bad
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. 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!
Rate this: bad
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[^].

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

  Print Answers RSS
0 OriginalGriff 445
1 Sergey Alexandrovich Kryukov 322
2 Maciej Los 275
3 CHill60 195
4 King Fisher 179
0 OriginalGriff 240
1 Maciej Los 95
2 Sascha Lefévre 85
3 King Fisher 70
4 F-ES Sitecore 55

Advertise | Privacy | Mobile
Web03 | 2.8.150331.1 | Last Updated 27 Nov 2012
Copyright © CodeProject, 1999-2015
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