求助静态分割单文档多视图问题,编译通不过
// DigitView.h : interface of the CDigitView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_DIGITVIEW_H__9CF1FCAD_DAC0_481B_B2C8_E6CF4254EE80__INCLUDED_)
#define AFX_DIGITVIEW_H__9CF1FCAD_DAC0_481B_B2C8_E6CF4254EE80__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CDigitView : public CScrollView
{
protected: // create from serialization only
CDigitView();
DECLARE_DYNCREATE(CDigitView)
// Attributes
public:
CPROG3Doc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDigitView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual void OnInitialUpdate(); // called first time after construct
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CDigitView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CDigitView)
// NOTE - the ClassWizard will add and remove member functions here.
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in DigitView.cpp
inline CPROG3Doc* CDigitView::GetDocument()
{ return (CPROG3Doc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DIGITVIEW_H__9CF1FCAD_DAC0_481B_B2C8_E6CF4254EE80__INCLUDED_)
编译时报以下错误
e:\vccode\prog3\digitview.h(22) : error C2143: syntax error : missing ';' before '*'
e:\vccode\prog3\digitview.h(22) : error C2501: 'CPROG3Doc' : missing storage-class or type specifiers
e:\vccode\prog3\digitview.h(22) : error C2501: 'GetDocument' : missing storage-class or type specifiers