标题:[求助]error C2440: '=' : cannot convert from 'struct tagBITMAPINFO *' ...
只看楼主
wqsvfbwh
Rank: 1
等 级:新手上路
帖 子:22
专家分:0
注 册:2007-2-8
 问题点数:0 回复次数:0 
[求助]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 *'
搜索更多相关主题的帖子: convert cannot struct 
2007-04-11 13:27



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-130988-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.514457 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved