Resolved:Help solving: error C2653: 'FindUserDlg' : is not a class or namespace name [modified]
-
hi all . could any one help me fix this compilation error. I am using visual studio 6.Thanks error :
-------------------Configuration: FindUser - Win32 Debug-------------------- Compiling... FindUser.cpp FindUserDlg.cpp C:\visualC\FindUser\FindUserDlg.cpp(15) : error C2653: 'FindUserDlg' : is not a class or namespace name Generating Code... Error executing cl.exe. FindUser.exe - 1 error(s), 0 warning(s)
pointing at : int FindUserDlg::GetPosByNick(CString szNick) { in FindUserDlg.cpp : implementation file error pic: [img]http://i5.photobucket.com/albums/y180/method007/error3.jpg\[/img\] finduserdlg.h content// FindUserDlg.h : header file // #if !defined(AFX_FINDUSERDLG_H__8EF5BE4C_79B2_4F61_B376_E2A019C98B9C__INCLUDED_) #define AFX_FINDUSERDLG_H__8EF5BE4C_79B2_4F61_B376_E2A019C98B9C__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 ///////////////////////////////////////////////////////////////////////////// // CFindUserDlg dialog class CFindUserDlg : public CDialog { // Construction public: CFindUserDlg(CWnd* pParent = NULL); // standard constructor // Dialog Data //{{AFX_DATA(CFindUserDlg) enum { IDD = IDD_FINDUSER_DIALOG }; // NOTE: the ClassWizard will add data members here //}}AFX_DATA // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CFindUserDlg) protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL // Implementation protected: HICON m_hIcon; // Generated message map functions //{{AFX_MSG(CFindUserDlg) virtual BOOL OnInitDialog(); afx_msg void OnSysCommand(UINT nID, LPARAM lParam); afx_msg void OnPaint(); afx_msg HCURSOR OnQueryDragIcon(); afx_msg void OnButton1(); //}}AFX_MSG DECLARE_MESSAGE_MAP() **public: int GetPosByNick(CString szNick);** ======== placed it here }; //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_FINDUSERDLG_H__8EF5BE4C_79B2_4F61_B376_E2A019C98B9C__INCLUDED_)
-- modified at 16:31 Monday 10th July, 2006 -
hi all . could any one help me fix this compilation error. I am using visual studio 6.Thanks error :
-------------------Configuration: FindUser - Win32 Debug-------------------- Compiling... FindUser.cpp FindUserDlg.cpp C:\visualC\FindUser\FindUserDlg.cpp(15) : error C2653: 'FindUserDlg' : is not a class or namespace name Generating Code... Error executing cl.exe. FindUser.exe - 1 error(s), 0 warning(s)
pointing at : int FindUserDlg::GetPosByNick(CString szNick) { in FindUserDlg.cpp : implementation file error pic: [img]http://i5.photobucket.com/albums/y180/method007/error3.jpg\[/img\] finduserdlg.h content// FindUserDlg.h : header file // #if !defined(AFX_FINDUSERDLG_H__8EF5BE4C_79B2_4F61_B376_E2A019C98B9C__INCLUDED_) #define AFX_FINDUSERDLG_H__8EF5BE4C_79B2_4F61_B376_E2A019C98B9C__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 ///////////////////////////////////////////////////////////////////////////// // CFindUserDlg dialog class CFindUserDlg : public CDialog { // Construction public: CFindUserDlg(CWnd* pParent = NULL); // standard constructor // Dialog Data //{{AFX_DATA(CFindUserDlg) enum { IDD = IDD_FINDUSER_DIALOG }; // NOTE: the ClassWizard will add data members here //}}AFX_DATA // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CFindUserDlg) protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL // Implementation protected: HICON m_hIcon; // Generated message map functions //{{AFX_MSG(CFindUserDlg) virtual BOOL OnInitDialog(); afx_msg void OnSysCommand(UINT nID, LPARAM lParam); afx_msg void OnPaint(); afx_msg HCURSOR OnQueryDragIcon(); afx_msg void OnButton1(); //}}AFX_MSG DECLARE_MESSAGE_MAP() **public: int GetPosByNick(CString szNick);** ======== placed it here }; //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_FINDUSERDLG_H__8EF5BE4C_79B2_4F61_B376_E2A019C98B9C__INCLUDED_)
-- modified at 16:31 Monday 10th July, 2006 -
hi all . could any one help me fix this compilation error. I am using visual studio 6.Thanks error :
-------------------Configuration: FindUser - Win32 Debug-------------------- Compiling... FindUser.cpp FindUserDlg.cpp C:\visualC\FindUser\FindUserDlg.cpp(15) : error C2653: 'FindUserDlg' : is not a class or namespace name Generating Code... Error executing cl.exe. FindUser.exe - 1 error(s), 0 warning(s)
pointing at : int FindUserDlg::GetPosByNick(CString szNick) { in FindUserDlg.cpp : implementation file error pic: [img]http://i5.photobucket.com/albums/y180/method007/error3.jpg\[/img\] finduserdlg.h content// FindUserDlg.h : header file // #if !defined(AFX_FINDUSERDLG_H__8EF5BE4C_79B2_4F61_B376_E2A019C98B9C__INCLUDED_) #define AFX_FINDUSERDLG_H__8EF5BE4C_79B2_4F61_B376_E2A019C98B9C__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 ///////////////////////////////////////////////////////////////////////////// // CFindUserDlg dialog class CFindUserDlg : public CDialog { // Construction public: CFindUserDlg(CWnd* pParent = NULL); // standard constructor // Dialog Data //{{AFX_DATA(CFindUserDlg) enum { IDD = IDD_FINDUSER_DIALOG }; // NOTE: the ClassWizard will add data members here //}}AFX_DATA // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CFindUserDlg) protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL // Implementation protected: HICON m_hIcon; // Generated message map functions //{{AFX_MSG(CFindUserDlg) virtual BOOL OnInitDialog(); afx_msg void OnSysCommand(UINT nID, LPARAM lParam); afx_msg void OnPaint(); afx_msg HCURSOR OnQueryDragIcon(); afx_msg void OnButton1(); //}}AFX_MSG DECLARE_MESSAGE_MAP() **public: int GetPosByNick(CString szNick);** ======== placed it here }; //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_FINDUSERDLG_H__8EF5BE4C_79B2_4F61_B376_E2A019C98B9C__INCLUDED_)
-- modified at 16:31 Monday 10th July, 2006