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...
@raveltammeleht627814 күн бұрын
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.
@chrisv145927 күн бұрын
Thanks to your tutorials they have helped me design my own software that I designed and show on my own KZbin channel!
@r9gaming279Ай бұрын
Bro you have 7 year of programming exp please Give me some advices
@marcuskrogsgaard45552 ай бұрын
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-pq4ec2 ай бұрын
2:05 how the second term got cancelled
@OuassimPelke3 ай бұрын
you are so good
@TheJaniczek3 ай бұрын
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)
@saultraver4 ай бұрын
bro at the begining I thought you said we're going to explode the api and I was confused and scared! LOL
@DalitsoTembo-dm8oz4 ай бұрын
I have an error: "LRESULT does not name a type", even though its the same as yours
@ameen272-amin4 ай бұрын
7 years and this youtuber is still underrated
@casultaser5 ай бұрын
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
@thewelder35386 ай бұрын
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.
@TheRawi6 ай бұрын
Why it's ridiculously hard to make GUI in C or C++. It's 2024 and we're still stuck with MFC crap.
@apalsnerg6 ай бұрын
Here 7 years later and still the best tutorial I've been able to find. God bless you, mate!
@jpaul19856 ай бұрын
15:54
@fardplayer696 ай бұрын
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-tn7ci6 ай бұрын
brothere, where are you noww
@ziphy_64716 ай бұрын
It's always the indians 😁🙏🙏
@fardplayer696 ай бұрын
Dayum bro, I havent seen any person on the internet explain the functions in this kind of depth. You've earned a sub!
@othernameunknowfuture7 ай бұрын
Thank you sir indian you have the biggest dick in the world
@WewAuction7 ай бұрын
the most impressive GUI C++ tutorial I've ever seen😊 thank you very much bro
@aabdoaabdohaya40207 ай бұрын
Bro where is the code in description!!
@eineatombombe2 ай бұрын
it gone. you gonna have to follow tutorial
@ngohoangson35617 ай бұрын
Hello. I have a problem with snakes not being able to eat food. Where did I go wrong?
@toadvices15027 ай бұрын
Please would you share the project source code
@mohdhamzaghyas43287 ай бұрын
best win32 tuturial
@toadvices15028 ай бұрын
Hello, can i have the source code of this project? regards
@titozhimomi2348 ай бұрын
Thank you🙏
@e-maree65708 ай бұрын
This was impeccable (I never comment on videos!!)
@MichealEhuntsi8 ай бұрын
Helped a lot thx man
@mianaliahmed98868 ай бұрын
dont know how you have been doing but....thanks a lot man......<3 :)
@matteoroccomico8 ай бұрын
will the source code be available on github?
@ВладПономаренко-д7ж8 ай бұрын
Thanks
@sergant4459 ай бұрын
working. Thanks!
@neerajXR9 ай бұрын
Old is Gold ! Fantastic...
@mmahirkorlu9 ай бұрын
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Ай бұрын
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)); }
@JordanRouss10 ай бұрын
THANK YOU FOR THIS VIDEO, IT WAS REALLY HELPFUL
@KaustavMajumder10 ай бұрын
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-g9f10 ай бұрын
great lectures
@GottZ11 ай бұрын
for a challenge, I recommend following along in rusts windows crate and use Win32_Foundation etc. features to implement this from scratch too.
@shadracktay63611 ай бұрын
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? 😢
@gurinderkaur68178 ай бұрын
open notepad as administrators then open wizardscript from there
@wsmwsm-b2u11 ай бұрын
on 16:09 what is that character between WS_EX_OVERLAPPEDWINDOW and WS_VISIBE
@Nick12_459 ай бұрын
its the pipe character |
@virno694208 ай бұрын
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_458 ай бұрын
@@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-zf6fg11 ай бұрын
Wow, i missed this series when i started my dev life. Thanks so much
@dehrk9024 Жыл бұрын
First rule when using win32 api to draw stuff to a window: don’t use win32 api to draw stuff to a window
@dyvfyh34192 ай бұрын
Does that mean i cant make something like a pixel art program?
@arc85882 ай бұрын
Is this an inside joke I don't get?
@Irremnent25 күн бұрын
The joke is that win32 is painful, and you should use an alternative like sdl2.
@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 Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
Does it work?
@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 Жыл бұрын
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.