显示未定义的类(新手,请不要笑)
suhk 2003-10-15 11:10:49 #include "MySocket.h"
class CMySocket;
class CTalk1Dlg : public CDialog
{
// Construction
public:
CTalk1Dlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CTalk1Dlg)
enum { IDD = IDD_TALK1_DIALOG };
CListBox m_listSent;
CListBox m_listReceived;
CComboBox m_cmbType;
CButton m_btnConnect;
CString m_strMsg;
CString m_strServName;
int m_nServPort;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CTalk1Dlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CTalk1Dlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnSelchangeComboType();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
public:
CMySocket m_pListenSocket;
CMySocket m_sConnectSocket;
};
最后两句的错误提示是:
f:\1\talk1\talk1dlg.h(55) : error C2079: 'm_pListenSocket' uses undefined class 'CMySocket',上面不是已经定义了么?请指点。