I'm learning C (I just finished Chapter 2 or Unit 2) of the C Programming Language, I skimmed to the end and saw that at no point anything was said about how to create a GUI, and from what I've looked up, it seems I have to use a framework, but I hate the idea of that. How would I create a GUI without a framework? How exactly do these frameworks work and what language are they written in? I'm not making a massive application, even if it takes me a week, would it be feasible to write a GUI application (in C) to do something simple like creating a window?
All operating systems are written in C. So, any application, console/GUI you write in C is the standard way of writing for the operating system.
Depends on the programming language and operating system you're using. In languages like C and C++, you would always need some basic library, like the system library. As for making a GUI application with just the basic API that your operating system provides, sure.
C has no such library connected to it like the string library, IO library, etc, that we every now and again use. This weakness opened the skyline for engineers to pick from a wide assortment of GUI library toolbox accessible in C.
Building a simple GUI toolkit means providing a couple of basic primitive elements that render content, and then slightly more complex layout elements that can modify the way in which their primitives render the content. Is it possible to write a GUI in C without a Windows API, just a raw C code? Yes.
You can build your own framework based on OpenGL or Xlib. Or use good graphics library like Motif or CGUI. Or use something awful like GTK.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With