CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 1999
    Posts
    16

    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


  2. #2
    Join Date
    May 1999
    Posts
    44

    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




  3. #3
    Join Date
    May 1999
    Posts
    16

    Re: Help with CBitmap::GetBitmap fails with NT?

    The

    BITMAP bm;



    declaration is in the class declaration.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured