For subscribers : I set up a blog.
0:40
Пікірлер
@RafGamerKJKKJJ
@RafGamerKJKKJJ Күн бұрын
i dont care_ ARROW is wild
@raveltammeleht6278
@raveltammeleht6278 14 күн бұрын
That is strange, why char works on your machine?? I had to modify the code to get it to working. Firstly I had to define the file_name as TCHAR file_name[256] = TEXT(""); and secondly, the lpstrFilter must be defined as TEXT("\0*.wav\0") and then it starts to work. I find it interesting that char works on your case...
@raveltammeleht6278
@raveltammeleht6278 14 күн бұрын
Oh .. I suspect you were using OPENFILENAMEA instead ... that explains, because now I am able to use chars! So it turns out, that you have to chose between UNICODE or ANSI characters in the editor. Afterwards you Should decide wether to use OPENFILENAMEA(ansi) or OPENFILENAMEW (for unicode, best compatibility as I understood). Either way thanks. Informative tutorial.
@chrisv1459
@chrisv1459 27 күн бұрын
Thanks to your tutorials they have helped me design my own software that I designed and show on my own KZbin channel!
@r9gaming279
@r9gaming279 Ай бұрын
Bro you have 7 year of programming exp please Give me some advices
@marcuskrogsgaard4555
@marcuskrogsgaard4555 2 ай бұрын
Holy shit, this was actually useful. With such a short video I thought it would be either too simple or too complex, but no. Well done!
@Seeker-pq4ec
@Seeker-pq4ec 2 ай бұрын
2:05 how the second term got cancelled
@OuassimPelke
@OuassimPelke 3 ай бұрын
you are so good
@TheJaniczek
@TheJaniczek 3 ай бұрын
For peeps with the error: WinMain.cpp: In function 'int WinMain(HINSTANCE, HINSTANCE, LPSTR, int)': WinMain.cpp:22:44: warning: passing NULL to non-pointer argument 3 of 'BOOL GetMessageA(LPMSG, HWND, UINT, UINT)' [-Wconversion-null] while(GetMessage(&msg, NULL, NULL, NULL)) I had to change the function to GetMessage(&msg, NULL, 0, 0)
@saultraver
@saultraver 4 ай бұрын
bro at the begining I thought you said we're going to explode the api and I was confused and scared! LOL
@DalitsoTembo-dm8oz
@DalitsoTembo-dm8oz 4 ай бұрын
I have an error: "LRESULT does not name a type", even though its the same as yours
@ameen272-amin
@ameen272-amin 4 ай бұрын
7 years and this youtuber is still underrated
@casultaser
@casultaser 5 ай бұрын
Thank you, worked 1st try on Windows XP using Dev C++ 4.9.9.2! The reason I am using such an old version is because I want to make sure that it will run on these old versions of Windows
@thewelder3538
@thewelder3538 6 ай бұрын
This is a good attempt at showing how to create Modal and Modeless dialog boxes, but WOW there are some seriously bad programming techniques here. Firstly, using a global for the MainWIndow so that you can get its handle in the WNDPROC of the dialog. When what you really should have done is either GetParent() or, if the window is WS_POPUP, then you want GetWindow(HWND, GW_OWNER). Also what you said about the window handle in the WM_COMMAND is wrong too. The hWnd handle that you receive when the button is clicked, will NOT be the handle of the Dialog, it will be the HANDLE of the button, which is just a window. Finally, there's no mention of subclassing your window. SetWindowSubclass() would have possibly been of use here rather than you creating a completely new class Atom.
@TheRawi
@TheRawi 6 ай бұрын
Why it's ridiculously hard to make GUI in C or C++. It's 2024 and we're still stuck with MFC crap.
@apalsnerg
@apalsnerg 6 ай бұрын
Here 7 years later and still the best tutorial I've been able to find. God bless you, mate!
@jpaul1985
@jpaul1985 6 ай бұрын
15:54
@fardplayer69
@fardplayer69 6 ай бұрын
Nice, I will take a look at it. Btw why dont you try and explain some popular game engines like quake engine, doom engine or raycaster engine
@OT-tn7ci
@OT-tn7ci 6 ай бұрын
brothere, where are you noww
@ziphy_6471
@ziphy_6471 6 ай бұрын
It's always the indians 😁🙏🙏
@fardplayer69
@fardplayer69 6 ай бұрын
Dayum bro, I havent seen any person on the internet explain the functions in this kind of depth. You've earned a sub!
@othernameunknowfuture
@othernameunknowfuture 7 ай бұрын
Thank you sir indian you have the biggest dick in the world
@WewAuction
@WewAuction 7 ай бұрын
the most impressive GUI C++ tutorial I've ever seen😊 thank you very much bro
@aabdoaabdohaya4020
@aabdoaabdohaya4020 7 ай бұрын
Bro where is the code in description!!
@eineatombombe
@eineatombombe 2 ай бұрын
it gone. you gonna have to follow tutorial
@ngohoangson3561
@ngohoangson3561 7 ай бұрын
Hello. I have a problem with snakes not being able to eat food. Where did I go wrong?
@toadvices1502
@toadvices1502 7 ай бұрын
Please would you share the project source code
@mohdhamzaghyas4328
@mohdhamzaghyas4328 7 ай бұрын
best win32 tuturial
@toadvices1502
@toadvices1502 8 ай бұрын
Hello, can i have the source code of this project? regards
@titozhimomi234
@titozhimomi234 8 ай бұрын
Thank you🙏
@e-maree6570
@e-maree6570 8 ай бұрын
This was impeccable (I never comment on videos!!)
@MichealEhuntsi
@MichealEhuntsi 8 ай бұрын
Helped a lot thx man
@mianaliahmed9886
@mianaliahmed9886 8 ай бұрын
dont know how you have been doing but....thanks a lot man......<3 :)
@matteoroccomico
@matteoroccomico 8 ай бұрын
will the source code be available on github?
@ВладПономаренко-д7ж
@ВладПономаренко-д7ж 8 ай бұрын
Thanks
@sergant445
@sergant445 9 ай бұрын
working. Thanks!
@neerajXR
@neerajXR 9 ай бұрын
Old is Gold ! Fantastic...
@mmahirkorlu
@mmahirkorlu 9 ай бұрын
First of all, thank you very much, I had a question for these lessons. I am trying to do it in C, not CPP. I got the following error: void random(int &x, int &y). This does not work in C. What could be the alternative?
@DanknDerpyGamer
@DanknDerpyGamer Ай бұрын
Pointers (changing the &s to *s, for the function definition and implementation, passing &x and &y to random (passing the addresses for x and y as arguments), and then, in the function, assigning the values to (*x) and (*y) respectively Unless I'm being a derp and forgot or missed something, maybe this will work: In the function that calls random: ... int x = 0; int y = 0; random(&x, &y); ... Updated random function: void random(int* x, int* y){ int _maxX = (gridX - 2); int _maxY = (gridY - 2); int _min = 1; srand(time(NULL)) (*x) = ((_min + rand()) % (_maxX-_min)); (*y) = ((_min + rand()) % (_maxY-_min)); }
@JordanRouss
@JordanRouss 10 ай бұрын
THANK YOU FOR THIS VIDEO, IT WAS REALLY HELPFUL
@KaustavMajumder
@KaustavMajumder 10 ай бұрын
Mate can you help me with one thing? I have a Direct2D Render Target rendering on my Win32 Application. How can I overlay a Text Box or Edit Control on top of the Render Target?
@SHIJITHM-g9f
@SHIJITHM-g9f 10 ай бұрын
great lectures
@GottZ
@GottZ 11 ай бұрын
for a challenge, I recommend following along in rusts windows crate and use Win32_Foundation etc. features to implement this from scratch too.
@shadracktay636
@shadracktay636 11 ай бұрын
I'm kinda having some trouble here. After I change the"glut32"to "freeglut" in the notepad and try to save, I receive a prompt that says I don't have permission to the save file and that I need administrator permission. How do I go about this please? 😢
@gurinderkaur6817
@gurinderkaur6817 8 ай бұрын
open notepad as administrators then open wizardscript from there
@wsmwsm-b2u
@wsmwsm-b2u 11 ай бұрын
on 16:09 what is that character between WS_EX_OVERLAPPEDWINDOW and WS_VISIBE
@Nick12_45
@Nick12_45 9 ай бұрын
its the pipe character |
@virno69420
@virno69420 8 ай бұрын
Bitwise OR operator. So basically it compares and if one of the operands bits is 1 it results in a 1 in the resulting memory. unsigned int a = 5; // binary: 0101 unsigned int b = 9; // binary: 1001 unsigned int result = a | b; // result will be 13, binary: 1101
@Nick12_45
@Nick12_45 8 ай бұрын
@@virno69420 yeah it basically checks each bit of one number to each of another: unsigned int a = 0b10010011; unsigned int b = 0b10100101; // c is equal to 0b10110111 unsigned int c = a | c;
@AnPham-zf6fg
@AnPham-zf6fg 11 ай бұрын
Wow, i missed this series when i started my dev life. Thanks so much
@dehrk9024
@dehrk9024 Жыл бұрын
First rule when using win32 api to draw stuff to a window: don’t use win32 api to draw stuff to a window
@dyvfyh3419
@dyvfyh3419 2 ай бұрын
Does that mean i cant make something like a pixel art program?
@arc8588
@arc8588 2 ай бұрын
Is this an inside joke I don't get?
@Irremnent
@Irremnent 25 күн бұрын
The joke is that win32 is painful, and you should use an alternative like sdl2.
@Blodstream
@Blodstream Жыл бұрын
for me, in Dev C++ at least, you have to put return 0; ate the end of the main function, or the window won't open
@EphraimAC
@EphraimAC Жыл бұрын
This is probably the best tutorial to get started on GUI programming with winAPI 32, I really appreciate you for doing this, thanks man ♥
@PerchEagle
@PerchEagle Жыл бұрын
Hi .. I have a question, do you have a blog page or email so I send you my problem ? I'm trying to print multiple page on the same hWnd object.
@zaidansari7944
@zaidansari7944 Жыл бұрын
Does it work?
@KozelPraiseGOELRO
@KozelPraiseGOELRO Жыл бұрын
I know it is a bit late (5 years) but does anyone know how to solve the problem of it not going down from 1 sec for each frame. (1 fps instead of 60 fps).
@arc2y9
@arc2y9 Жыл бұрын
i was getting "cannot convert 'const wchar_t [7]' to 'LPCSTR {aka const char*}' in assignment" error on devc++ and i added #ifndef UNICODE #define UNICODE #endif to top of my code then fixed.