unexpected end of file found in comment 是什么问题啊

来源:百度知道 编辑:UC知道 时间:2024/09/23 23:26:20
//*************************************
//MyApp.h
//

class CMyApp:public CWinApp
{
public:
virtual BOOL InitInstance();
};

class CMyApp:public CFrameWnd
{
public:
CMyFrame();
protected:
afx_msg void OnLButtonDown(UNIT nFlags,CPoint point);
afx_msg void Onpaint();
DECLARE_MESSAGE_MAP()
};

/**********************************
//MyApp.cpp
//

#include "stdafx.h"
#include "afxwin.h"
#include "MyApp.h"
CMyApp theApp;//建立CMyApp 对象
BOOL CMyApp::InitInstance()
{
m_pMainWnd=new CMyFrame();
m_pMainWnd->ShowWindow (m_nCmdShow);
m_pMainWnd->UpDateWindow();
return TRUE;
}

BEGIN_MESSAGE_MAP(CMyFrame,CFrameWnd)
ON_WM_LBUTTONDOWN()
ON_WM_PAINT()
END_MESSAGE_MAP()

CMyFrame::CMyFrame()
{
Create(NULL,"MYAPP Application&qu

/**********************************
//MyApp.cpp
//
上面这段注释的第一行,都没有结束 */ 那编译器当然认为你下面的都是注释咯,而在注释中你的文件到末尾了,所以是错

意思是“在注释里发现了异常的文件结尾”。
错误信息说明:源代码的文件末尾存在异常情况。可能有中文字符或者全角字符等非正常字符。重点检查注释符号是否被正确运用。