PDA

View Full Version : How do I Make My Own GUI In C++



Kris1994
September 25th, 2012, 01:08 AM
Hello, I was wondering how I would go about making my own GUI in c++. I want to do this
without any frameworks, basically I want to create my own GUI from scratch no
dependencies. I don't want any built-in API either. Just pure C++.

Please respond.
thanx :)

satsujinka
September 25th, 2012, 01:29 AM
What you're describing is basically impossible. At some point in time you'll need some combination of assembly, system calls, OpenGL, Xlib/XCB, or a tool kit.

JKyleOKC
September 25th, 2012, 01:32 AM
Since you say "no API" that means you have to start right down at the bare metal and learn how to interpret keycodes into characters, put dots on the monitor and arrange them to form letters and words, and handle the critical timing details for getting data to and from your disk drives. None of this is really practical in any high-level language; it requires finely tuned assembly language coding.

Keep in mind that very few people have ever accomplished all this on a solo basis. Even Linus took several years to come up with the original Linux kernel, and that was with the help of dozens of folk on UseNet.

It's a noble goal, but be prepared for several years of trial and error for each part of the process. And to be strict about it, "no API" would rule out the possibility of using any of the standard C++ libraries, even...