Click here to Skip to main content
15,887,444 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: std::shared_ptr causing C4150 warning even if custom deleter is used in Visual C++ 2012 Pin
Elerian7-Mar-14 8:20
Elerian7-Mar-14 8:20 
QuestionThe destructor of MFC application [Solved] Pin
econy6-Mar-14 7:02
econy6-Mar-14 7:02 
AnswerRe: The destructor of MFC application Pin
David Crow6-Mar-14 7:09
David Crow6-Mar-14 7:09 
GeneralRe: The destructor of MFC application Pin
econy6-Mar-14 8:41
econy6-Mar-14 8:41 
GeneralRe: The destructor of MFC application Pin
jeron16-Mar-14 9:15
jeron16-Mar-14 9:15 
GeneralRe: The destructor of MFC application Pin
econy6-Mar-14 10:14
econy6-Mar-14 10:14 
GeneralRe: The destructor of MFC application Pin
jeron16-Mar-14 10:50
jeron16-Mar-14 10:50 
AnswerRe: The destructor of MFC application Pin
«_Superman_»6-Mar-14 14:30
professional«_Superman_»6-Mar-14 14:30 
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.


Microsoft MVP (Visual C++) (October 2009 - September 2013)

Polymorphism in C

GeneralRe: The destructor of MFC application Pin
econy7-Mar-14 5:15
econy7-Mar-14 5:15 
Questionso confused. Should I learn Android development? if so, where should I start? Pin
Falconapollo6-Mar-14 4:51
Falconapollo6-Mar-14 4:51 
AnswerRe: so confused. Should I learn Android development? if so, where should I start? Pin
Orjan Westin6-Mar-14 5:36
professionalOrjan Westin6-Mar-14 5:36 
GeneralRe: so confused. Should I learn Android development? if so, where should I start? Pin
Falconapollo6-Mar-14 14:44
Falconapollo6-Mar-14 14:44 
AnswerRe: so confused. Should I learn Android development? if so, where should I start? Pin
David Crow6-Mar-14 7:19
David Crow6-Mar-14 7:19 
GeneralRe: so confused. Should I learn Android development? if so, where should I start? Pin
Falconapollo6-Mar-14 14:45
Falconapollo6-Mar-14 14:45 
AnswerRe: so confused. Should I learn Android development? if so, where should I start? Pin
charlieg6-Mar-14 15:15
charlieg6-Mar-14 15:15 
GeneralRe: so confused. Should I learn Android development? if so, where should I start? Pin
Falconapollo6-Mar-14 15:17
Falconapollo6-Mar-14 15:17 
GeneralRe: so confused. Should I learn Android development? if so, where should I start? Pin
charlieg6-Mar-14 15:46
charlieg6-Mar-14 15:46 
GeneralRe: so confused. Should I learn Android development? if so, where should I start? Pin
Falconapollo6-Mar-14 16:34
Falconapollo6-Mar-14 16:34 
GeneralRe: so confused. Should I learn Android development? if so, where should I start? Pin
charlieg6-Mar-14 23:27
charlieg6-Mar-14 23:27 
AnswerRe: so confused. Should I learn Android development? if so, where should I start? Pin
Theo Buys11-Mar-14 2:24
Theo Buys11-Mar-14 2:24 
GeneralRe: so confused. Should I learn Android development? if so, where should I start? Pin
Falconapollo25-Mar-14 23:50
Falconapollo25-Mar-14 23:50 
QuestionBeep and MessageBeep Pin
cedricvictor5-Mar-14 20:34
cedricvictor5-Mar-14 20:34 
AnswerRe: Beep and MessageBeep Pin
Jochen Arndt5-Mar-14 21:15
professionalJochen Arndt5-Mar-14 21:15 
GeneralRe: Beep and MessageBeep Pin
_Flaviu5-Mar-14 21:22
_Flaviu5-Mar-14 21:22 
GeneralRe: Beep and MessageBeep Pin
Jochen Arndt5-Mar-14 21:42
professionalJochen Arndt5-Mar-14 21:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.