Skip to content

Reply To: Select Nick On Paltalk Listview Code FInally :)

#188657
method
Member

I changed the content of finduserdlg.h and now i got one error:

error :

 

Configuration: FindUser - Win32 Debug

Compiling...
FindUser.cpp
FindUserDlg.cpp
C:visualCFindUserFindUserDlg.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:

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_)