Click to See Complete Forum and Search --> : Help with CBitmap::GetBitmap fails with NT?


Stuart Ledwich
May 11th, 1999, 06:30 AM
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

Robert Bielik
May 11th, 1999, 06:39 AM
Where does the bm parameter in GetBitmap(&bm) come from? Shouldn't there be a declaration:

BITMAP bm;

before you do GetBitmap(&bm)?

/Robert

Stuart Ledwich
May 11th, 1999, 09:01 AM
The

BITMAP bm;



declaration is in the class declaration.