C++ GUI Programming For Beginners | Episode 2 - Creating a Window

preview_player
Показать описание
Learn how to program cross platform graphical user interfaces in C++ using wxWidgets.

This time we begin programming GUIs by creating a simple application which displays a window on the screen (with a title!). We explore the absolute basics of wxWidgets and start to get a feel for the library.

wxWidgets website:

Chapters:
0:00 - Plan
0:10 - Project Setup
0:21 - MainFrame Class
3:44 - Entry Point?
4:18 - App Class
5:47 - wxIMPLEMENT_APP
6:14 - A Beautiful Window
6:30 - Size & Position
6:50 - Better Window & Size Rant
7:30 - Success!
Рекомендации по теме
Комментарии
Автор

We need wxwidgets tutorials man, please don't stop posting, you know that the resources to learn wxwidgets are limited

mamograg
Автор

These videos are amazing! they have been helping me greatly so far! i look forward to watching the rest of these videos to study along with! you make it very understandable to someone who is new to programming like me! thank you and i look forward to more C++ tutorials!

seanhauth
Автор

Can you tell me fix for blurry text on higher resolution screens in wxwidgets. I tried to fix it using manifest file and it worked, but is it only way of doing it ?

dhyey
Автор

I have a question. In 2:05, why did we include the <wx/wx.h> library in the implementation file if we have already included it in the header file? Can’t the compiler or preprocessor or whatever just include the library of <wx/wx.h> from the header file?

DarkValley-bp
Автор

So when I am trying to create the App class, I get a notification saying class not registered. I tried looking up to see what it meant or what i can do to fix it and it gives me a lot of different options. Do you know what is causing this?

LetsGet_It_Don
Автор

Hello! With the code at 6:19 I am getting the following error: 'wxTopLevelWindowMSW::Show' not accessible because 'mainFrame' uses 'private' to inherit from 'wxFrame'. Am I doing something wrong? I have the exact same code as shown in the video.

maartenbudie
Автор

Thank you very much for this introduction video! I still need to figure out all the class-related topics in c++ to fully appreciate what you show in your video, but this is just super cool!!

andewprod
Автор

I aways watch your video, i dont good with my english, but you are my source of motivation, thank you very much

ucTran-rycv
Автор

I appreciate this thorough tutorial, keep it up!

yousefibrahim
Автор

humans plese help me i press "start" my program is start but my start dont visible on down panel

Mako-wl
Автор

What about calling destructor? You created dynamically one object mainFrame by using the new operator. Is there any garbage collector in the wxWidgets that does this instead of you?

chiefbromden
Автор

I have some trouble in the Mainframe keep telling no instance of overloaded function

kazuakane
Автор

Is there memory leak of mainFrame after exit of OnInit?

СергейСергей-ччй
Автор

my project is built without errors. However the window doesn't appear on the screen. Any idea? Thanks

mariosvasiliou
Автор

There is no error but my window is not getting appeared just the program runs and nothing happens

ttariq
Автор

Hey, i like your wx videos.
Hope you can help me.
On create first window, i got an error massage.
C2248: MainFrame::MainFrame: no access to private members in MainFrame class.

rockshoxx
Автор

I'm getting a weird error saying "link.exe" exited with code 1168 and how it cannot open FirstGUI.exe for writing, Any solutions to this?

Proverbsv
Автор

hello! I like this video, but why when I started debugging, it keeps showing unable to start program the system cannot find the file specified. why this happened? Thanks in advance!

dimasbaskara
Автор

Great video! I'm trying to run your code on linux, but I keep getting this error:
App.cpp:(.text+0xea): undefined reference to const&)'
collect2: error: ld returned 1 exit status
Any ideas why?

glados
Автор

I'm running no errors, the only thing I changed was changing the name of the .h and .cpp from App to App1 since I was running into an error "class not registered". It compiles just fine but the GUI is not popping up. What's going on?

iCrazy