Help with CBitmap::GetBitmap fails with NT?
bool CMyBmpClass::Load( UINT p_resID )
{
if( m_bitmap.LoadBitmap( p_resID ))
{
if( m_bitmap.GetBitmap(&bm) )
m_useHBitmap = true;
else
return false;
}
return true;
}
This fails every time with NT but works fine under 98 with the same resource bitmap?
Any ideas?
Regards
Stuart Ledwich
Re: Help with CBitmap::GetBitmap fails with NT?
Where does the bm parameter in GetBitmap(&bm) come from? Shouldn't there be a declaration:
BITMAP bm;
before you do GetBitmap(&bm)?
/Robert
Re: Help with CBitmap::GetBitmap fails with NT?
The
BITMAP bm;
declaration is in the class declaration.