In this new self-contained project we'll be coding our own Windows system! We'll write a 2D graphics engine, we'll design a GUI and then we'll use our library to show real windows on the screen, control them with the mouse etc.
This project will run in a virtualized environment (easy to set up, I will show you) so the code runs equally well on top of Windows, Linux or Mac OS X.
PLEASE NOTE: You need to know the basics of C to follow along this project, but nothing else. We'll use additional components but that's 5% and you can just copy that stuff if you'd like. The code is freely available at the repo (watch below) and it will stay there for 4 days as usual.
Let us get going :)
JB
#gui #graphical #user #interface #CodingAgui #programming #coders #CLanguage #OSdev
References
1. Stanislav's BIOS interrupts page
https://www.stanislavs.org/helppc/idx...
2. Buy my book about computer networking:
https://books.doctorbirch.com
3. Become a channel member and get several benefits, check out:
/ @dr-jonas-birch
4. Source code from the repo
https://repo.doctorbirch.com/gui
Table of Contents
00:00:00 Introduction
00:02:52 Project setup
00:32:48 Creating color palettes
00:48:13 Designing our interface
01:47:51 Handling text
02:22:38 Drawing a point 🍒
03:14:40 Drawing a line 🍒
03:57:38 Drawing a rectangle 🍒
04:38:58 Drawing 2D graphics 🍒
04:48:02 Troubleshooting memory
05:06:09 Success 🍒
On this page of the site you can watch the video online Coding a Graphical User Interface in C - from scratch with a duration of hours minute second in good quality, which was uploaded by the user dr Jonas Birch 14 June 2025, share the link with friends and acquaintances, this video has already been watched 24,857 times on youtube and it was liked by 1.2 thousand viewers. Enjoy your viewing!