Here 7 years later and still the best tutorial I've been able to find. God bless you, mate!
@ameen272-amin4 ай бұрын
7 years and this youtuber is still underrated
@Ghost5726 жыл бұрын
You do such a good job explaining this stuff in detail. I have been learning stuff off websites which are good but don't really explain fully whats going on, although I would of figured it out eventually its really nice to have someone to point out the key areas of where menus connect together etc. Thanks for all this, you should set up a patron account I'm sure there are people who would like to send a bit of money your way for the time you've put into this.
@ThePentamollisProject6 жыл бұрын
thanks for the appreciation. It really means a lot. And actually i was thinking about setting up patreon, but currently i'm more involved in setting up a blog for this channel ( just started sketching out the basic ideas ). Once the blog is up and running, I'll do the patreon work next. although, talking about money, the revenue from this channel is more than enough to keep me motivated to keep coming up with new content.
@compotetonpote26522 жыл бұрын
@@ThePentamollisProject Cool ! Nice! Very gud! I luv you :3
@Ethorbit5 жыл бұрын
Just wanted to thank you for making so many tutorials on Win32 GUIs, even though we could go to MSDN and see the solutions it's always nice to have a video on it with someone who is easy to understand and explains it in great detail.
@harryshuman96379 ай бұрын
Yeah, I wish a multi-billion corporation like Microsoft would invest a bit of time and replace this achaic WinAPI interface with a more modern OOP C++ implementation.
@tugaks18375 ай бұрын
@@harryshuman9637 They already did it with WinUI... tho it is quite slow compared to the WIN32 API.
@harryshuman96375 ай бұрын
@@tugaks1837 Is it running C# under the hood?
@tugaks18375 ай бұрын
@@harryshuman9637 No, it's implemented using C++/WinRT which is a projection of C++.
@pianoblader42636 жыл бұрын
Damn dude, I usually don't like watching youtube videos about programming because they don't explain much, and is usually better to go read official documantation for the code, but this is really good.
@orionbekesi5 жыл бұрын
khm, indians
@johnkalady54683 жыл бұрын
You teach better than my professor!
@escorvus5 жыл бұрын
Well, I didn't really listen to what you said but I still got it! Thanks
@mianaliahmed98868 ай бұрын
dont know how you have been doing but....thanks a lot man......
@aibou23995 жыл бұрын
Best win32 tutorial so far. Thanks, suscribing.
@enderstarpg6921 Жыл бұрын
Very helpful tutorial series so far, but the MessageBeep function plays the same sound for all the constants. Running windows11 and can't find anything about it on google
@atifkhan-ix1jc5 жыл бұрын
Where you learn it
@scramjet46104 жыл бұрын
Example works good. Great job explaining a complex subject in an understandable and practical way. My mingw compiler throws warnings with NULL, wants to see 0 instead.
@hl2mukkel6 жыл бұрын
This was super easy and very helpful! Thank you very much :)
@samuelsergio60956 жыл бұрын
Soooo much better than the docs
@vinayarora65445 жыл бұрын
Nicely explained topics :) Cheers for the provider!!!
@bobbryson59967 жыл бұрын
best video ever extremely helpful, bravo!!!
@mohdhamzaghyas43287 ай бұрын
best win32 tuturial
@retrozvoc61894 жыл бұрын
Seems very extensive. I like it!
@dmaster20ify7 жыл бұрын
You are my general for the coding. Which I had a bank account to wire you some money. But I couldn't pay you what you value anyways. Just keep making the good videos. You see that? I am a new subscriber to your channell.
@ThePentamollisProject7 жыл бұрын
thank you. It means a lot to get feedback from viewers like you. :-)
@Оңтүстікжыр-терме Жыл бұрын
With which program are you writing
@icykanfused1043 жыл бұрын
Am having trouble compiling. I am getting a too few arguments error in the AddMenus function, What would be the issue kindly advice.
@vinh010113 жыл бұрын
I need to learn deeply about Win API , code on C ++ language can access the most specific and in-depth details about the computer system . Can you give me advice, how to learn Win API effectively? Thank you !!
@urbanawp3 жыл бұрын
can someone explain how you can use a function inside a while loop and how it stays true "while (GetMessage(&msg, NULL, NULL, NULL))" well mine did not stay true some how, i have no idea why, hell the loop don´t make sense to me
@potatopotato75615 жыл бұрын
Excellent video, and thank you for this series, but your desktop hurts my eyes.
@raoahmadshaharyar77204 жыл бұрын
Same here, because of it, i'm having a headache. But HE explains great.
@kevinparsley68067 жыл бұрын
My system does not alter sounds between the MB_OK and MB_ICONINFORMATION. Also, my file menu pops up on the outside edge of the parent window. I don't know if any of that is normal or not.
@RoyNBarlow6 жыл бұрын
I didn't have the file menu outside the parent window issue, but I also didn't have altering sounds between those two functions. It made this tutorial less fun to do hahaha
@schmidtlach3 жыл бұрын
Excellent tutorial as usual!
@tovape2 жыл бұрын
you are a life saver, thanks so much for your knowlegde!
@elgato75574 жыл бұрын
Hello man, I know it is 3 years later but I am following your tutorial and I have an issue, when I build and run after adding the menu to my window it causes it to instantly close after running, the window works fine without menus but if i add one i get this problem. I am using Visual Studio 2019
@ATealPenguin4 жыл бұрын
Carter Hoffmeyer thx so much i was getting Chinese letters instead of “File”
@brycejohansen71143 жыл бұрын
@@ATealPenguin You can put a L before the beginning speech marks of the string, so L"File" ... hopefully that helps.
@papinkelman76955 жыл бұрын
Why do you have a microphone inside your keyboard?
@ricardomunhoz67067 жыл бұрын
Show man .. I liked your videos I would have checked in C too .. for comparisons
@ricardomunhoz67067 жыл бұрын
*checked wrong it's done. Sorry for my english
@ThePentamollisProject7 жыл бұрын
:-)
@marcussmithwick63267 жыл бұрын
Where was this video 2 years ago, thanks :)
@ThePentamollisProject7 жыл бұрын
2 years ago .... i didn't even know one programming language XD.
@enlightedjedi4 жыл бұрын
At the AppendMenu(hMenu, MF_STRING, NULL, "File"); line I get an error saying "'BOOL AppendMenuW(HMENU,UINT,UINT_PTR,LPCWSTR)': cannot convert argument 4 from 'const char [5]' to 'LPCWSTR'" How do I solve this?
@enlightedjedi4 жыл бұрын
I had managed to solve it myself!
@retrodev27723 жыл бұрын
@@enlightedjedi how did you solve it? I have the same problem
@retrodev27723 жыл бұрын
nvm all i had to do was do was use L"File" insted of "File"
@skillerdz71456 жыл бұрын
i have a probleme , when i start the script , the window crash and don't want to continue
@mikeoxsor61833 жыл бұрын
I like your background
@raebailey15495 жыл бұрын
i am only getting the first letter of my window name how can i fix this
7 жыл бұрын
do you have a github so i can grab the files and play with them?
@ThePentamollisProject7 жыл бұрын
I have not uploaded this project. I can email you the files, but they have been modified.
7 жыл бұрын
ok whats you email?
@calibr06365 жыл бұрын
your background tho, is that benedict cumberbatch
@MasterMindmars2 жыл бұрын
Very good
@hohohappyday773 жыл бұрын
can you show the project files?
@satishg69655 жыл бұрын
in next video please tell us how you are able to remember the codes, what are the logic that you use to keep that thing in your brain,
@ThePentamollisProject5 жыл бұрын
The key to remembering all that is experience. Make notes for now, and refer to them whenever necessary. You keep using these commands over and over again, you'll eventually have them by heart.
@ashutoshrautela34547 жыл бұрын
How to open console with Win32 application in Visual Studio?
@ThePentamollisProject7 жыл бұрын
if you create a win32 project in visual studio, it automatically disables the console. You might wanna look in the project settings if you want to enable it. Or you can try creating a new project as a "console application" instead of "win32 API project" in the first place,. Win32 works that way too, but you might get linking problems in this case if you are planning to use GDI in your application. Good-luck !
@taviann3 жыл бұрын
Thank you.... 🙏🏽
@serviciointegraldesegurida72762 жыл бұрын
Example works good.
@НиколайМиронов-г3и5 жыл бұрын
MessageBeep 9:40 dont work... Do nothing
@RobbieEscamilla5 жыл бұрын
Turn on the speakers :P
@gplayminion17343 жыл бұрын
i followed the tutorial and my window wont open now
@EarthSettler7 жыл бұрын
Thank you a lot, will there be the 3rd one?
@ThePentamollisProject7 жыл бұрын
yes, next week. On Wednesday probably.
@Rumplestiltzchen2 жыл бұрын
that desktop! sheeesh!
@WhoForgot2Flush5 жыл бұрын
well done
@valizeth40736 жыл бұрын
Why do you declare the function then define it? like: void addMenu(); void addMenu() { } instead of just doing it once?
@ThePentamollisProject6 жыл бұрын
because it is the way its done. I think you're getting C++ confused with java or c#. in C++ if you're calling a function before it has been defined ( i mean the function call is above the definition in the code ), the compiler will not be able to find the function. Consider the following code for instance : void do_stuff() { //code } int main() { do_stuff(); } this code will work fine because the function has been defined before its called. But most of the people like to keep the main function on the top in their code. Consider the following example: int main() { do_stuff(); } void do_stuff() { //code } this code won't compile because the compiler will not be able to find the function as it is defined afterwards. So you'll need to add a declaration before the function call that will tell the compiler that a function with that name exists and it has to look for it. the code: void do_stuff(); int main() { do_stuff(); } void do_stuff() { //code } :-)
@valizeth40736 жыл бұрын
Well it's really simple to work around it. Instead of for an example: void doStuff(const char* message); int main() { } void doStuff(const char* message) { } just: void doStuff(const char* message) { } int main() { } I've never gotten any issue with this, nor do I think it's needed, it basically just makes the program longer, I can't really see any benefit with doing it that way :*
@valizeth40736 жыл бұрын
AND usually with C++ you're using classes within different tabs of the window like: myClass.h + myClass.cpp + main.cpp. Then the main function is basically the only function in the main.cpp tab. Then the issue is gone aswell
@ThePentamollisProject6 жыл бұрын
if you have other functions in other files ( not main.cpp), you'll also need to provide declarations in either the main file or in the header file and then include the header in the main file. Thats another use of declarations. But if you're working with classes and objects, then there's a different story.
@Ethorbit5 жыл бұрын
@@valizeth4073 Longer is better than messy, having the main function buried in the program is not very clean, most people (including me) prefer to use the prototypes, I personally do them in the header so that the function can be below the main function without any additional stuff like you said.
@serviciointegraldesegurida72762 жыл бұрын
Excelent, thank you.
@jihwan8166 жыл бұрын
very good video thx
@Ibrahimkhan-uc8rw5 жыл бұрын
brother if you make a calculetor by using gui for us, it will help us much