BOOL CBmp::Read(CFile *pFile)
{
//进行读操作
try
{
BITMAPFILEHEADER bmfh;
//步骤一,读取文件头
int nCount = pFile->Read((LPVOID)&bmfh, sizeof(BITMAPFILEHEADER));
//判断是否是bmp图像
if (bmfh.bfType != BMP_HEADER_MARKER)
{
throw  new  CException;
}
//计算信息头加上调色板的大小并分配内存
int nSize = bmfh.bfOffBits - sizeof(BITMAPFILEHEADER);
m_pBMIH = (LPBITMAPINFOHEADER) new BYTE[nSize];
//步骤二,读取信息头和调色板
nCount = pFile->Read(m_pBMIH, nSize);
//步骤三,读取图像数据
m_pBits = (LPBYTE) new BYTE[m_pBMIH->biSizeImage];
    nCount = pFile->Read(m_pBits, m_pBMIH->biSizeImage);     
}
catch (CException* pe)
{
AfxMessageBox("Read error");
pe->Delete();
return FALSE;
}
return TRUE;
}编译有两处错误
error LNK2001: unresolved external symbol "public: virtual struct CRuntimeClass * __thiscall CBmp::GetRuntimeClass(void)const " (?GetRuntimeClass@CBmp@@UBEPAUCRuntimeClass@@XZ)
Debug/VC图像之图像读写.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.哪里错了呀??求高手帮忙