winapi - Compiling CImage::StretchBlt() always always shows Internal compiler error in x64 -


environment : vs2008 sp1 professional

i have function uses method cimage::stretchblt(). code compiles correctly in 32 bit environment, in 64bit, show error

c:\program files (x86)\microsoft visual studio 9.0\vc\atlmfc\include\atlimage.h(398) : fatal error c1001: internal error has occurred in compiler.

void cmylistview::drawhistorythumbnail( int nindex ) {     crect rctthumbnail;     getthumbnailrect( rctthumbnail );      cimage imghistory;     imghistory.loadfromresource( afxgetresourcehandle(), idb_bitmap_history_thumbnail );       cdc* pdc = getdc();     cdc dcmemory;     dcmemory.createcompatibledc( pdc );      cbitmap bmphistory;     bmphistory.createcompatiblebitmap( pdc, rctthumbnail.width(), rctthumbnail.height() );      cbitmap* poldbmp = dcmemory.selectobject( &bmphistory );      // if comment below issue goes away     imghistory.stretchblt( dcmemory.getsafehdc(), rctthumbnail, srccopy );      cbrush brushframe;       brushframe.createsolidbrush( rgb(0, 0, 255) );     dcmemory.framerect( rctthumbnail, &brushframe );      dcmemory.selectobject( poldbmp );     releasedc( pdc ); } 


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -