vc++中的问题,请哪位达人看看

来源:百度知道 编辑:UC知道 时间:2024/05/22 17:48:21
// area2.cpp : Defines the class behaviors for the application.
//

#include "stdafx.h"
#include "area2.h"
#include "area2Dlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CArea2App

BEGIN_MESSAGE_MAP(CArea2App, CWinApp)
//{{AFX_MSG_MAP(CArea2App)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG
ON_COMMAND(ID_HELP, CWinApp::OnHelp)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CArea2App construction

CArea2App::CArea2App()
{
// TODO: add construction code here,
// Place all significant initialization in InitInstance

楼主用的不是 vc++6.0 编译器吧?
__thiscall 是C++类成员函数的调用约定。
你的编译器可能不支持c++吧。我也初学,不过你这错误我还是第一次见到- -

老大呀,你看到没有呀,你的构造函数里有个参数的 CWnd* 而你看看你的CPP文件里,没有参数呀

顶楼上的