Posted by Fox on 2000-12-28
that's what I needed to know. Thank you! /****************************/ > You should use > delete bmp; > > And this is why. DeleteObject( bmpHandle ) takes a handle to a win32 object > not a pointer to a C++ object. This function knows nothing about MFC. The > CBitmap class if designed correctly will call DeleteObject on the handle of > the bitmap that it contains.
Previous post | Next post | Timeline | Home