我已经把两周的心血都给你了,现在单片机使用的目标文件数据结构有变,我又要忙死了
see you

解决方案 »

  1.   

     DIBSECTION ds;
       HBITMAP m_HBitmap=(HBITMAP)::LoadImage(NULL,"h:\\test.bmp",
       IMAGE_BITMAP,0,0,
    LR_LOADFROMFILE|LR_CREATEDIBSECTION|LR_DEFAULTSIZE);
       if(m_HBitmap==NULL)
        return ; 
       ::GetObject(m_HBitmap,sizeof(ds),&ds);
            dwHeight=ds.dsBmih.biHeight;
    dwWidth=ds.dsBmih.biWidth;
    lpRgbBuffer=(BYTE *)ds.dsBm.bmBits;
             tempbitmap.bmiHeader=ds.dsBmih;
            ::StretchDIBits(GetDC()->GetSafeHdc(),0,0,dwWidth,dwHeight,
    0,0,dwWidth,dwHeight,ds.dsBm.bmBits,&tempbitmap,DIB_RGB_COLORS,SRCCOPY);数据在DS结构里,ds.dsBm.bmBits是内容地址的第一个指针。