我写了一个包含以下两个类的库。Visual Studio 的第一堂课没有问题,但第二堂课有错误。我不知道为什么。有什么想法吗?
头等舱:
class __declspec(dllexport) C_RGBImage: public C_Matrix<S_RGB>
{
public:
C_RGBImage( S_Size<long> &A_rSize = S_Size<long>(0, 0)): C_Matrix(A_rSize){}
bool SaveBMP( std::wstring A_rFileName );
bool LoadBMP( std::wstring A_rFileName );
bool SaveJPEG( std::wstring A_rFileName, int A_iQuality = 85 );
bool LoadJPEG( std::wstring A_rFileName );
};
二等:
class __declspec(dllexport) C_RGBAImage: public C_Matrix<S_RGBA>
{
public:
C_RGBAImage( S_Size<long> &A_rSize = S_Size<long>() ): C_Matrix(A_rSize){}
bool SaveBMP( std::wstring &A_rFileName );
bool LoadBMP( std::wstring &A_rFileName );
bool LoadBMPFromResource( HINSTANCE A_hInstance, long A_lBitmapID );
};