Windows GUI Programming with C/C++ ( Win32 API ) | Part -9 | Save File Dialog and Scrollbars

preview_player
Показать описание
Win32 API ( Windows GUI ) Programming with C++/C.

--Part 9--
New function calls introduced:
GetSaveFileName()

Next part(10):

Facebook page :
Рекомендации по теме
Комментарии
Автор

This was VERY useful tutorial series.
I wish you did more of these, you're explaining very well.

DavePaddy
Автор

Tributes! to a great teacher you are!.... Thank you so much for explaining things so beautifully.. Pray you do well in everything you do.

ajupeter
Автор

I really like your tutorial. Your English is easy to understand. What you've taught us are extremely helpful for beginners.
Hope that you can publish part 10 of GUI tutorial. Thanks!!

billtsou
Автор

Thanks !!!! For me this is the best tutorial of Win32 API.
Greetings from Colombia

santiagomendezmejia
Автор

Thanks for the 9 video into to Win32. This was extremely well thought out and presented.

hk-aerialvtol
Автор

You have a memory leak when you call "new[]" without a corresponding "delete[]" (note that this is "delete[]" with square brackets, not just "delete"). I would suggest taking a more modern C++ approach to reading the file that eliminates the issue of manual memory management altogether:

Include these headers:

#include <fstream>
#include <string>

Then do this:

std::wifstream file(path);
std::wstring contents((std::istreambuf_iterator<wchar_t>(file)),
SetWindowText(hEdit, contents.c_str());

This solves your memory leak and leaves the task of memory management to the C++ standard library.

Overall great tutorial videos though!

timothywrona
Автор

Thanks for this video series, i was afraid of diving in this old school c style api, but it was a confortable trip with your tutorials.

wrathOfTheTrueGods
Автор

Thank you for this tutorial series. This really helped me getting started with the Windows API!

Lugmillord
Автор

Congratulations! Thank you for the great information that you have provide us!

carloseduardomayerdeolivei
Автор

Excellent list bro, was so helpfull to me and my projects :)

noteng
Автор

Very useful tutorial, thank you, brother !

mikeroland
Автор

شكرا لك يا صديقي😀🙂 لقد ساعدتني في الكثير🙂

MohamedGaber-svnh
Автор

Can you please do a tutorial on checkboxes?

Martin-wzrm
Автор

thanks so much for these wonderful series.

newgatefullbustar
Автор

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.

PerchEagle
Автор

Nice, did you have example for create trackbar in windows GUI C++

alvinhi
Автор

Why do you sometimes use the underscore _ before a variable ?

benmac
Автор

Thx a lot about your perfect tutorials. So, one question, how can read from a windows a panel objects? For example a label or textedit field? Is this possible with the findwindowex function? Or via getwindowstext? It make me really creepy that problem! Thx a lot for a answere. Please keep healthy! 🖖🏻🖖🏻🖖🏻

brazo
Автор

I have a problem, can you help me?

I need to read a file, execute a series of procedures (which take time), and during the procedure I want to show text messages (debug) on ​​the "hEdit" screen. However, it is only after the process is finished that writing is done on the "hEdit" screen. Is there any way for the two processes to coexist?

emanoel.g.s
Автор

Awesome work, I've found something that might prove to be difficult for the viewers that I've run into. If you don't load a file then it crashes because it doesn't have a file to load and goes onto the next function as if it did. A little help on this fix would be helpful

MisterTyken
join shbcf.ru