帮忙看出错在那里了呢?我能不懂!
我的程序出了问题!
class ___BmpInfoHeader;
//-------------------------------------------------------
class ___BmpPalette
{
private:
int get_actaulUsedPaletteNums(___BmpInfoHeader& friendObj)const;
private:
vector <rgbData> Vec_bmpPalette_.reserve;
};
//----------------------------------------------------
class ___BmpPixelData
{
private:
pair <myDWORD,myDWORD> get_BmpHeightAndBmpWidth(___BmpInfoHeader& friendObj)const;
private:
pair <myDWORD,myDWORD> bmpHandW;
};
//-------------------------------------------------------
class ___BmpInfoHeader
{
private:
friend int ___BmpPalette::get_actaulUsedPaletteNums(___BmpInfoHeader& friendObj)const;
friend pair <myDWORD,myDWORD> ___BmpPixelData::get_BmpHeightAndBmpWidth(___BmpInfoHeader& friendObj)const;
private:
bmpINFOheader bmpInfoHead_;
};
//------------------------------------------------------
bmp_handle_0601\bmp_handle_0601\bmp_handle_0601\ori_bmpbaseclassmodule.h(67) : error C2248: '___BmpPalette::get_actaulUsedPaletteNums ' : cannot access private member declared in class '___BmpPalette '
f:\beifen\bmp_handle_0601\bmp_handle_0601\bmp_handle_0601\ori_bmpbaseclassmodule.h(31) : see declaration of '___BmpPalette::get_actaulUsedPaletteNums '
f:\beifen\bmp_handle_0601\bmp_handle_0601\bmp_handle_0601\ori_bmpbaseclassmodule.h(26) : see declaration of '___BmpPalette '
f:\beifen\bmp_handle_0601\bmp_handle_0601\bmp_handle_0601\ori_bmpbaseclassmodule.h(68) : error C2248: '___BmpPixelData::get_BmpHeightAndBmpWidth ' : cannot access private member declared in class '___BmpPixelData '
f:\beifen\bmp_handle_0601\bmp_handle_0601\bmp_handle_0601\ori_bmpbaseclassmodule.h(49) : see declaration of '___BmpPixelData::get_BmpHeightAndBmpWidth '
f:\beifen\bmp_handle_0601\bmp_handle_0601\bmp_handle_0601\ori_bmpbaseclassmodule.h(44) : see declaration of '___BmpPixelData '
testMain.cpp
f:\beifen\bmp_handle_0601\bmp_handle_0601\bmp_handle_0601\testmain.cpp(1) : fatal error C1083: Cannot open include file: 'Ori_BmpBaseClassMoudle.h ': No such file or directory
Generating Code...
Build log was saved at "file://f:\beifen\BMP_HANDLE_0601\Bmp_Handle_0601\Bmp_Handle_0601\Debug\BuildLog.htm "
Bmp_Handle_0601 - 3 error(s), 0 warning(s)
[解决办法]
class ___BmpPalette
{
private:
int get_actaulUsedPaletteNums(___BmpInfoHeader& friendObj)const;
=========>
public:
int get_actaulUsedPaletteNums(___BmpInfoHeader& friendObj)const;
///////////////////////////////////////////-
class ___BmpPixelData
{
private:
pair <myDWORD,myDWORD> get_BmpHeightAndBmpWidth(___BmpInfoHeader& friendObj)const;
=========>
public:
pair <myDWORD,myDWORD> get_BmpHeightAndBmpWidth(___BmpInfoHeader& friendObj)const;