Click here to Skip to main content
14,243,279 members

C / C++ / MFC

 
SuggestionWrong Forum Pin
Richard Deeming10-Mar-15 2:04
mveRichard Deeming10-Mar-15 2:04 
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 
Is the CBitmap object allocated on the heap (with new) or on the stack

class YourClass
{
   ~YourClass (){/* no need to delete m_Bitmap */};
   CBitmap m_Bitmap;
};


or

class YourClass
{
   ~YourClass () {delete m_Bitmap;};
   CBitmap* m_Bitmap;
};


If you properly override a MFC class then the MFC (and/or underlying Win32 object) will be destructed by the framework, but everything else that you have allocated yourself should be handled by you (in a cleanup function or in the class destructor).
I'd rather be phishing!

AnswerRe: Destructors Pin
Albert Holguin11-Mar-15 16:46
professionalAlbert Holguin11-Mar-15 16:46 
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 

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.