Тёмный
No video :(

Open a Window in C with Win32 

Nick Walton
Подписаться 6 тыс.
Просмотров 10 тыс.
50% 1

Опубликовано:

 

25 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 24   
@UltimaN3rd
@UltimaN3rd 2 года назад
The code can be downloaded at the top of the text version of this tutorial: croakingkero.com/tutorials/opening_a_window_with_win32/ Please let me know what you think of this tutorial format so I can keep improving it for my future tutorials :)
@Knifeworld
@Knifeworld 2 года назад
Best short explanation of starting a Windows GUI program I've seen yet
@UltimaN3rd
@UltimaN3rd 2 года назад
Cheers mate! It took almost a month of reworking to get it to a state I'm happy with :P
@emergingtoaster
@emergingtoaster Год назад
Been searching for weeks for exactly this channel. Great Format!
@UltimaN3rd
@UltimaN3rd Год назад
I'll keep trying to make the best videos I can 😁
@pqsk
@pqsk 2 года назад
Nice. I enjoy making GUI programs for windows. Some say it's cumbersome, but something about going down to the win32 api is a lot of fun
@CarlJdP
@CarlJdP Год назад
Thank you so much for this walk through, I've been searching for a concise explanation like this for months! I'm comfortable with reading and understanding Assembly code, but the naming conventions in Windows APIs just confuse the hell out of me. Just one note for your next video, it would be helpful if you could increase or double the code's text size, its a bit difficult to watch on a mobile device, or if your local 🇿🇦 ISP can't reliable stream videos above 480p without constant buffering 😅
@UltimaN3rd
@UltimaN3rd Год назад
Glad I could help 😊
@CarlJdP
@CarlJdP Год назад
@@UltimaN3rd , I first started learning programming in high school (2003 / grade 10 computer science) where they taught us Turbo Pascal. Personally I dislike using higher level abstractions/languages without first knowing how they work under the hood. During an extra curricular course that year on PIC Microchips I was introduced to MIPS/RISC Assembly and fell in love with the low level simplicity! I've been a full-stack web developer now for 5 years, and been feeling increasingly anxious about the big black box between my high level code and everything that happens before it get executed on the hardware - I just have to know how it works! So I set out on a journey of (re)discovery, where I'm trying to build 'something' manually, from the ground up, without relying on code generation complicated IDE tools. To keep it simple, for future cross-platform expand ability, and choosing mostly permissive licensed tools, I've decided going with C, LLVM/Clang, CMake. Which should allow me to develop equally well from either Linux or Windows via WSL For a first real project I'm attempting to build a cross-platform process-manager/task-runner - just for the learning experience. 😅P.S. #OpenToWork #Remote #AvailableImmediately www.linkedin.com/in/carljdp/
@duke_of_germany
@duke_of_germany Год назад
What a great tutorial series, thank you! ✨ I read through the deep dive, but I did not fully get the part about the variables "window_class" and "window_class_name". 😔 The deep dive says they are declared static to avoid heap allocation, and it is to avoid running out of heap space. But how could this be a problem for local variables in a function that is only called once? I would appreciate any hint or explanation! 🙂
@UltimaN3rd
@UltimaN3rd Год назад
Cheers mate 😊 About that memory allocation - I believe I was wrong. Thanks for pointing that out, I'll update the page soon.
@user-ej6ph3ew7u
@user-ej6ph3ew7u 2 года назад
Prefer C++ because C++ brings about higher level abstraction in programing language which is essential for big project.
@starc0w
@starc0w Год назад
No, not really.
@Santoshshaw12
@Santoshshaw12 2 года назад
nice video
@UltimaN3rd
@UltimaN3rd 2 года назад
Cheers mate!
@legend644
@legend644 Год назад
This causes some weird resizing issues? Like, when playing with the window, the cursor would sometimes show the resize icon in the middle of the frame And sometimes it just doesn't listen to you trying to resize the window At least, that's what my laptop's doing I followed a different tutorial that did something similar in C++ and it also had the same issue
@UltimaN3rd
@UltimaN3rd Год назад
This tutorial was intended to be the minimum to get a window open, so those issues are expected. To fix the cursor, at line 14 add: window_class.hCursor = LoadCursor (NULL, IDC_ARROW); Resizing the window correctly requires handling the WM_SIZE window event. That's included in my "drawing pixels to a window" tutorial: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-q1fMa8Hufmg.html Cheers.
@legend644
@legend644 Год назад
@@UltimaN3rdThanks man, I couldn't find hints anywhere as to why it acts weird. That line fixes it completely. Will definitely be watching the rest, too!
@UltimaN3rd
@UltimaN3rd Год назад
@@legend644 You're welcome mate, cheers 😊👉
@slavko5666
@slavko5666 2 года назад
And that's why libraries graphics like GTK, Qt, SDL, etc.. exist.
@UltimaN3rd
@UltimaN3rd 2 года назад
If a library meets the needs of your programs then by all means, use it.
@UltimaN3rd
@UltimaN3rd 2 года назад
My "drawing pixels to the window" tutorial is up! ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-q1fMa8Hufmg.html
Далее
Draw Pixels to a Win32 Window in C with GDI
7:11
Просмотров 10 тыс.
Master Pointers in C:  10X Your C Coding!
14:12
Просмотров 300 тыс.
Only I get to bully my sister 😤
00:27
Просмотров 17 млн
O'ZBEK VA TOJIKLAR ROSSIYADA TERAKT UYUSHTIRISHDI!
08:41
СМАЗАЛ ДВЕРЬ
00:31
Просмотров 125 тыс.
HOW Win32 Apps Are Made in C
23:54
Просмотров 23 тыс.
Arenas, strings and Scuffed Templates in C
12:28
Просмотров 83 тыс.
Writing Code That Runs FAST on a GPU
15:32
Просмотров 553 тыс.
Drawing Graphics with C and Windows API is Easy
5:17
C++ vs Rust: which is faster?
21:15
Просмотров 389 тыс.
Creating a Game Loop with C & SDL (Tutorial)
1:50:46
Просмотров 51 тыс.