[求助]error C2440: '=' : cannot convert from 'struct tagBITMAPINFO *' to
void Coib::OpenFile(){
CFileDialog fdlg(TRUE,NULL,"*.bmp",OFN_OVERWRITEPROMPT,"*.bmp",NULL);
CFile file;
BITMAPFILEHEADER *pImage;
BYTE *Data;
if(fdlg.DoModal())
{
CString filename=fdlg.GetPathName();
file.Open(filename,CFile::modeRead|CFile::typeBinary|CFile::shareExclusive);
UINT iLen=file.GetLength();
Data=new UCHAR[iLen];
file.ReadHuge(Data,iLen);
pImage=(PBITMAPFILEHEADER)Data;
lpBmpPalett=(PBITMAPINFO)(Data+sizeof(BITMAPFILEHEADER));
到这里`就出错了`那个师兄帮到看一下那么改?谢谢`!
报错error C2440: '=' : cannot convert from 'struct tagBITMAPINFO *' to 'unsigned char *'