prog.cpp:2:1: error: expected class-name before ‘{’ token
{
^
prog.cpp:6:22: error: ISO C++ forbids declaration of ‘DECLARE_MESSAGE_MAP’ with no type [-fpermissive]
DECLARE_MESSAGE_MAP()
^
prog.cpp:6:22: error: expected ‘;’ at end of member declaration
DECLARE_MESSAGE_MAP()
^
;
prog.cpp:7:2: error: ‘afx_msg’ does not name a type
afx_msg void OnEnd();
^~~~~~~
prog.cpp:8:2: error: ‘afx_msg’ does not name a type
afx_msg void OnAbout();
^~~~~~~
prog.cpp:9:2: error: ‘afx_msg’ does not name a type
afx_msg void OnPaint();
^~~~~~~
prog.cpp:10:2: error: ‘afx_msg’ does not name a type
afx_msg void OnDropFiles(HDROP hDropInfo);
^~~~~~~
prog.cpp:11:2: error: ‘afx_msg’ does not name a type
afx_msg void OnFileOpen();
^~~~~~~
prog.cpp:13:2: error: ‘CImage’ does not name a type
CImage m_image;
^~~~~~
prog.cpp:15:17: error: ‘CString’ has not been declared
bool LoadImage(CString filename);
^~~~~~~
prog.cpp:18:6: error: no declaration matches ‘void CMyWindow::OnPaint()’
void CMyWindow::OnPaint()
^~~~~~~~~
prog.cpp:18:6: note: no functions named ‘void CMyWindow::OnPaint()’
prog.cpp:1:7: note: ‘class CMyWindow’ defined here
class CMyWindow : public CFrameWnd
^~~~~~~~~
prog.cpp:39:29: error: variable or field ‘OnDropFiles’ declared void
void CMyWindow::OnDropFiles(HDROP hDropInfo)
^~~~~
prog.cpp:39:29: error: ‘HDROP’ was not declared in this scope
prog.cpp:51:27: error: ‘bool CMyWindow::LoadImage’ is not a static data member of ‘class CMyWindow’
bool CMyWindow::LoadImage(CString filename)
^~~~~~~
prog.cpp:51:27: error: ‘CString’ was not declared in this scope