Click here to Skip to main content
14,271,663 members

C / C++ / MFC

 
QuestionEjecting USB memory sticks problem Pin
Still learning how to code10-Mar-15 1:07
memberStill learning how to code10-Mar-15 1:07 
AnswerRe: Ejecting USB memory sticks problem Pin
David Crow10-Mar-15 2:42
memberDavid Crow10-Mar-15 2:42 
GeneralRe: Ejecting USB memory sticks problem Pin
Still learning how to code10-Mar-15 3:04
memberStill learning how to code10-Mar-15 3:04 
QuestionDestructors Pin
lor759-Mar-15 8:11
memberlor759-Mar-15 8:11 
AnswerRe: Destructors Pin
David Crow9-Mar-15 9:22
memberDavid Crow9-Mar-15 9:22 
GeneralRe: Destructors Pin
lor759-Mar-15 9:39
memberlor759-Mar-15 9:39 
GeneralRe: Destructors Pin
Maximilien10-Mar-15 3:47
memberMaximilien10-Mar-15 3:47 
AnswerRe: Destructors Pin
Albert Holguin11-Mar-15 16:46
professionalAlbert Holguin11-Mar-15 16:46 
If the CBitmap was dynamically allocated, then you probably need to deallocate it yourself. If it was allocated on the stack, then the framework will take care of it. For the most part, anything you new, you must delete.

As for classes that you make, you only really need an explicit destructor if you need to clean things up that you did (deallocate memory/resources, close files, close sockets, etc). The framework has default destructors that deallocate what it allocated behind the scenes, so you just have to clean up what you did for the most part.
Questionc graphics Pin
Member 115074488-Mar-15 2:35
memberMember 115074488-Mar-15 2:35 
AnswerRe: c graphics Pin
Frankie-C8-Mar-15 4:18
memberFrankie-C8-Mar-15 4:18 
AnswerRe: c graphics Pin
Afzaal Ahmad Zeeshan11-Mar-15 7:43
mveAfzaal Ahmad Zeeshan11-Mar-15 7:43 
Questioncryptosystem Pin
Member 115062768-Mar-15 1:54
memberMember 115062768-Mar-15 1:54 
AnswerRe: cryptosystem Pin
Richard MacCutchan8-Mar-15 2:09
protectorRichard MacCutchan8-Mar-15 2:09 
AnswerRe: cryptosystem Pin
Chris Losinger9-Mar-15 6:31
professionalChris Losinger9-Mar-15 6:31 
Questionusb modem problem Pin
ali_heidari_7-Mar-15 7:32
memberali_heidari_7-Mar-15 7:32 
AnswerRe: usb modem problem Pin
Frankie-C7-Mar-15 10:14
memberFrankie-C7-Mar-15 10:14 
GeneralRe: usb modem problem Pin
ali_heidari_7-Mar-15 17:54
memberali_heidari_7-Mar-15 17:54 
QuestionCreating an .Obj File Pin
Bram van Kampen6-Mar-15 12:46
memberBram van Kampen6-Mar-15 12:46 
AnswerRe: Creating an .Obj File Pin
Mauro Leggieri6-Mar-15 14:31
memberMauro Leggieri6-Mar-15 14:31 
AnswerRe: Creating an .Obj File Pin
Richard MacCutchan6-Mar-15 21:33
protectorRichard MacCutchan6-Mar-15 21:33 
AnswerRe: Creating an .Obj File Pin
Frankie-C7-Mar-15 6:04
memberFrankie-C7-Mar-15 6:04 
QuestionConvert Borland c++ project to VC++ Pin
nextel1225-Mar-15 23:19
membernextel1225-Mar-15 23:19 
AnswerRe: Convert Borland c++ project to VC++ Pin
Dave Kreskowiak6-Mar-15 9:20
mveDave Kreskowiak6-Mar-15 9:20 
QuestionError : Application was unable o start correctly(0xc000007b). Pin
002comp4-Mar-15 19:15
member002comp4-Mar-15 19:15 
AnswerRe: Error : Application was unable o start correctly(0xc000007b). Pin
Jochen Arndt4-Mar-15 21:02
mveJochen Arndt4-Mar-15 21:02 

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.