Since you're adding the font in the application's InitInstance method, it would be properly matched if you release it in ExitInstance[^].
It would also work if done in the destructor of the dialog class, but ExitInstance would be cleaner.
The Visual Studio wizard does not normally output the dialog class destructor, but you could write one yourself as you would normally do and it will be called when the dialog class goes out of scope.
«_Superman_» I love work. It gives me something to do between weekends.
I am a C++ programmer(based on Visual Studio-MFC, Win32). I have 3-year work experience, now i'm so confused when search jobs at monster.com. So many Android job chances, and very few Windows C++ jobs. And the salary of Android is much better than VC++.
To my dismay, Microsoft had fooled a lot of people, its technologies uupdated frequently and many of them are out of date, like Visual Basic, SilverLight, MFC, FrontPage, Expression Studio and so on.
So confused about my situation, should I learn Android or go on learning MFC/Win32 or Linux C++ development?
If should I learn Android, where should I start? How long will it take to make me a Anroid programmer?(If I want to find a Android job)
Hm... I'll give you Silverlight, but MFC and Visual Basic both lasted over a decade, which isn't too shabby in this business. MFC is still supported and developed, but far less used, these days. (If you want to work with GUIs on Windows, learn C#.)
Predicting the future is notoriously hard, and predicting what platforms will be around in five years isn't much easier (remember Symbian, which had close to 100% of the smartphone market?) so it's hard to give advice, especially since the smartphone/social media/online world is experiencing a nice bubble at the moment.
The main language used for Android development is Java, which means learning a new language and its libraries, as well as the quirks of the Android platform. How long did it take you to learn C++/MFC?
In the end, it comes down to what you want to work with. If you enjoy C++, why not stick with it? It will be around for a good while yet.