WinAsm Studio, The Assembly IDE - Free Downloads, Source Code
Programming Quick Start
32-bit Assembler is Easy
Porting Iczelion tutorials
What is FASM
Hard Drive Recovery
Wiring your own LAN

How to work with visual interface in C++?

Quote Post

New Member

Group: Members
Posts: 1
Member No.: 58572
Joined: 17-June 13

Sponsored Links
I am teaching myself C++, I have downloaded code::blocks and even run my first hello world scripts and a bit more, but so far all the tutorials I have bee using seem to using the shell command to display the data. I mean, when I run the program, I can only see the output from the command line interface, but I actually want to see panels, like the javascript window with button and everything, so, how do I actually call that in C++ terminology, and how can I run a simple hello world script or something similar using it? Is there any link that could show me a simple tutorial using this basic interface, instead of using a black screen to run everythin?
html5 drupal nyc
PMEmail Poster
Quote Post

New Member

Group: Members
Posts: 16
Member No.: 823
Joined: 3-December 04

What you want is a Graphical User Interface. This sort of thing is provided by a widget kit. A few popular ones are Qt, GTK and MFC.

I would recommend Qt because, among other things, it's cross platform (including Android) and includes a browser (powered by Webkit) widget that lets you execute JavaScript from within your application too.

If you download the full installer from the Qt website it even comes with a compiler (mingw) that will let you build the sample applications straight away.

A simple Qt program that brings up an empty window looks like this:

#include <QApplication>
#include <QTextEdit>

int main(int argv, char **args)
   QApplication app(argv, args);

   QTextEdit textEdit;
   textEdit.setText("Hello World!");;

   return app.exec();

Of course, like MFC, Qt has a drag-and-drop style editor for fast UI layout, but personally I prefer to do everthing from code:

user posted image

Of course coming from an assembly background you might not like the 10mb+ runtime that Qt requires. If it's minimal dependencies that you're looking for then I'd investigate the native windows API for GUI rendering.
PMEmail Poster
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topicStart Poll


Computer Science

Hardware & PC maintenance


General Discussions
Suggestions/Bug Reports
WinAsm Studio

General Discussions
Suggestions/Bug Reports
WinAsm Studio FAQ
Multilingual User Interface
Assembly Programming

Custom Controls
Announcements & Rules



Online Degrees - Distance Learning
The Heap