G
geyufly
Unregistered / Unconfirmed
GUEST, unregistred user!
先是代码,问题写在后面:一定要帮帮忙
class CNetClientDlg : public CDialog
{
[red]// Construction[/red]public:
void OnCon();
CNetClientDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CNetClientDlg)
enum { IDD = IDD_NETCLIENT_DIALOG };
CString m_ServerAdd;
int m_ServerPort;
CString m_Status;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CNetClientDlg)
protected:
virtual voiddo
DataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CNetClientDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnBconnect();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
CMyScoket m_Connect;//[red]就是这个地方老是报syntax error : missing ';' before identifier 'm_Connect'
和'CMyScoket' : missing storage-class or type specifiers
到底是怎么回事吗?哎,CMyScoket是继承的CAsyncSocket[/red]};
class CNetClientDlg : public CDialog
{
[red]// Construction[/red]public:
void OnCon();
CNetClientDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CNetClientDlg)
enum { IDD = IDD_NETCLIENT_DIALOG };
CString m_ServerAdd;
int m_ServerPort;
CString m_Status;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CNetClientDlg)
protected:
virtual voiddo
DataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CNetClientDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnBconnect();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
CMyScoket m_Connect;//[red]就是这个地方老是报syntax error : missing ';' before identifier 'm_Connect'
和'CMyScoket' : missing storage-class or type specifiers
到底是怎么回事吗?哎,CMyScoket是继承的CAsyncSocket[/red]};