HBITMAP hbit = (HBITMAP)SHLoadDIBitmap(name);
...
DeleteObject(hbit);
无法释放资源,使用Remote Heap Walker显示为fixed!
请大家帮忙
hbit 要从dc选出以后才可以delectboject
即之前要调用 dc.selectobject(oldhbit);
如楼上所说
HBITMAP hbit = (HBITMAP)SHLoadDIBitmap(name);
HBITMAP hOldBit = SelectObject( hMemDC, hbit );
//..Bitblt( do something )
SelectObject( hMemDC,hOldBit );
DeleteObject( hbit );
如LS所说,正在被内存DC使用的资源是不能DeleteObject()的