#if !defined(AFX_DDALINE_H__D2765BB7_6D0B_46C5_95FE_CC8CE0192EC9__INCLUDED_)
#define AFX_DDALINE_H__D2765BB7_6D0B_46C5_95FE_CC8CE0192EC9__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif
// _MSC_VER > 1000
// DDALine.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// DDALine dialog
class DDALine : public CDialog
{
// Construction
public:
DDALine(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(DDALine)
enum { IDD = IDD_DIALOG1 };
float m_stx;
float m_endx;
float m_sty;
float m_endy;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(DDALine)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(DDALine)
virtual void OnOK();
virtual void OnCancel();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DDALINE_H__D2765BB7_6D0B_46C5_95FE_CC8CE0192EC9__INCLUDED_)
显示错误如下:
DDALine.cpp
c:\program files\microsoft visual studio\myprojects\graph\ddaline.h(15) : error C2143: syntax error : missing ';' before 'constant'
c:\program files\microsoft visual studio\myprojects\graph\ddaline.h(15) : fatal error C1004: unexpected end of file found
graphView.cpp
c:\program files\microsoft visual studio\myprojects\graph\ddaline.h(15) : error C2143: syntax error : missing ';' before 'constant'
c:\program files\microsoft visual studio\myprojects\graph\ddaline.h(15) : fatal error C1004: unexpected end of file found
Generating Code...
执行 cl.exe 时出错.
graph.exe - 1 error(s), 0 warning(s)