Do I really need to keep the Temp picture alive until I shutdown the game??Code:dim a as long dim dc as long dim temp as ipicturedisp dim orig as Long for a=0 to 100 'Load dc = createcompatibledc(me.hdc) set temp=loadpicture("c:\test.bmp") ' get handle to original bitmap created with DC orig = selectobject(dc, temp) 'Release ' put the original bitmap back into the DC selectobject dc, orig ' delete the bitmap that was created deleteobject temp ' free the DC's resources deletedc dc next




Reply With Quote