When I compile code from a program I'm making it give me these two errors
Here is the Bitmap classCode:|4|error: redefinition of 'class Bitmap' |5|error: previous definition of 'class Bitmap'
Code:class Bitmap { protected: //Memeber variables HBITMAP m_hBitmap; int m_iWidth, m_iHeight; //Helper Methods void Free(); public: //Constructor(s)/Destructor Bitmap(); Bitmap(HDC hDC, LPSTR szFileName); Bitmap(HDC hDC, UINT uiResID, HINSTANCE hInstance); Bitmap(HDC hDC, int iWidth, int iHeight, COLORREF crColor = RGB(0,0,0)); virtual ~Bitmap(); //General Methods BOOL Create(HDC hDC, LPSTR szFileName); BOOL Create(HDC hDC, UINT uiResID, HINSTANCE hInstance); BOOL Create(HDC hDC, int iWidth, int iHeight, COLORREF crColor); void Draw(HDC hDC, int x, int y, BOOL bTrans = FALSE, COLORREF crTransColor = RGB(255, 0, 255)); int GetWidth(){return m_iWidth; }; int GetHeight(){return m_iHeight; }; };



LinkBack URL
About LinkBacks



