程序跑不起来求解改错谢谢
错误提示如下d:\chongdianshuaka\chongdianshuaka\chongdianshuakadlg.h(27) : error C2065: 'IDD_Chongdianshuaka_DIALOG' : undeclared identifier
d:\chongdianshuaka\chongdianshuaka\chongdianshuakadlg.h(27) : error C2057: expected constant expression
执行 cl.exe 时出错.
出错语句已经改颜色
源代码如下:
// ChongdianshuakaDlg.h : header file
//
#if !defined(AFX_ChongdianshuakaDLG_H__A0839107_B418_11D6_A0F0_00E01808B099__INCLUDED_)
#define AFX_ChongdianshuakaDLG_H__A0839107_B418_11D6_A0F0_00E01808B099__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CChongdianshuakaDlg dialog
class CChongdianshuakaDlg : public CDialog
{
public:
long m_baund;
HANDLE icdev;
public:
// Construction
public:
CChongdianshuakaDlg(CWnd* pParent = NULL); // standard constructor
long GetBaund();
// Dialog Data
//{{AFX_DATA(CChongdianshuakaDlg)
enum { IDD = IDD_Chongdianshuaka_DIALOG };
CComboBox m_KeyModeCtrl;
CStatic m_Status;
CComboBox m_BaundCtl;
int m_Port;
int m_Sector;
CString m_key;
int m_OpMode;
CString m_Data;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CChongdianshuakaDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CChongdianshuakaDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnBtnConnect();
afx_msg void OnBtnDisconnect();
afx_msg void OnTest();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_ChongdianshuakaDLG_H__A0839107_B418_11D6_A0F0_00E01808B099__INCLUDED_)