急求帮助,谢谢!!
VC++编程中,我在调用全局变量theAPP时,用extern C****App theApp;进行调用,但提示
C:\Documents and Settings\Administrator\桌面\CAPP\ZHUJIEMIAN.cpp(20) : error C2146: syntax error : missing ';' before identifier 'theApp'
C:\Documents and Settings\Administrator\桌面\CAPP\ZHUJIEMIAN.cpp(20) : fatal error C1004: unexpected end of file found
这是怎么回事啊,寻求高手帮助,谢谢!!!下面是一部分程序:
// ZHUJIEMIAN.cpp : implementation file
//
#include "stdafx.h"
#include "capp.h"
#include "ZHUJIEMIAN.h"
//#include "afx.h "
#include "resource.h"
#include "BuZhouSheet.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CZHUJIEMIAN dialog
//BOOL Loginstatus;
extern CCAPPApp theApp;
CZHUJIEMIAN::CZHUJIEMIAN(CWnd* pParent /*=NULL*/)
: CDialog(CZHUJIEMIAN::IDD, pParent)
{
//{{AFX_DATA_INIT(CZHUJIEMIAN)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
/*extern CCAPPApp theApp; */
void CZHUJIEMIAN::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CZHUJIEMIAN)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}