Click here to Skip to main content
15,917,005 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: can somebody show me a sourcecode about a game called "PACMAN"writing in MFC??HELP Pin
Taka Muraoka10-Jul-06 20:30
Taka Muraoka10-Jul-06 20:30 
JokeRe: can somebody show me a sourcecode about a game called "PACMAN"writing in MFC??HELP Pin
ThatsAlok10-Jul-06 22:49
ThatsAlok10-Jul-06 22:49 
GeneralRe: can somebody show me a sourcecode about a game called "PACMAN"writing in MFC??HELP Pin
boilerroom11-Jul-06 15:13
boilerroom11-Jul-06 15:13 
QuestionReaders and Writers Problem Pin
Fidel_1810-Jul-06 13:53
Fidel_1810-Jul-06 13:53 
AnswerRe: Readers and Writers Problem Pin
ThatsAlok10-Jul-06 19:16
ThatsAlok10-Jul-06 19:16 
GeneralRe: Readers and Writers Problem Pin
Fidel_1810-Jul-06 20:26
Fidel_1810-Jul-06 20:26 
QuestionMSWord Compound files Pin
Fwzklmn10-Jul-06 11:45
Fwzklmn10-Jul-06 11:45 
QuestionResolved:Help solving: error C2653: 'FindUserDlg' : is not a class or namespace name [modified] Pin
method00710-Jul-06 9:34
method00710-Jul-06 9:34 
hi all . could any one help me fix this compilation error. I am using visual studio 6.Thanks


error :

-------------------Configuration: FindUser - Win32 Debug--------------------<br />
Compiling...<br />
FindUser.cpp<br />
FindUserDlg.cpp<br />
C:\visualC\FindUser\FindUserDlg.cpp(15) : error C2653: 'FindUserDlg' : is not a class or namespace name<br />
Generating Code...<br />
Error executing cl.exe.<br />
<br />
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

<br />
// FindUserDlg.h : header file<br />
//<br />
<br />
#if !defined(AFX_FINDUSERDLG_H__8EF5BE4C_79B2_4F61_B376_E2A019C98B9C__INCLUDED_)<br />
#define AFX_FINDUSERDLG_H__8EF5BE4C_79B2_4F61_B376_E2A019C98B9C__INCLUDED_<br />
<br />
#if _MSC_VER > 1000<br />
#pragma once<br />
#endif // _MSC_VER > 1000<br />
<br />
<br />
<br />
<br />
/////////////////////////////////////////////////////////////////////////////<br />
// CFindUserDlg dialog<br />
<br />
class CFindUserDlg : public CDialog<br />
{<br />
// Construction<br />
public:<br />
	CFindUserDlg(CWnd* pParent = NULL);	// standard constructor<br />
<br />
// Dialog Data<br />
	//{{AFX_DATA(CFindUserDlg)<br />
	enum { IDD = IDD_FINDUSER_DIALOG };<br />
		// NOTE: the ClassWizard will add data members here<br />
	//}}AFX_DATA<br />
<br />
	// ClassWizard generated virtual function overrides<br />
	//{{AFX_VIRTUAL(CFindUserDlg)<br />
	protected:<br />
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support<br />
	//}}AFX_VIRTUAL<br />
<br />
// Implementation<br />
protected:<br />
	HICON m_hIcon;<br />
<br />
	// Generated message map functions<br />
	//{{AFX_MSG(CFindUserDlg)<br />
	virtual BOOL OnInitDialog();<br />
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);<br />
	afx_msg void OnPaint();<br />
	afx_msg HCURSOR OnQueryDragIcon();<br />
	afx_msg void OnButton1();<br />
	//}}AFX_MSG<br />
	DECLARE_MESSAGE_MAP()<br />
<br />
public: <br />
int GetPosByNick(CString szNick);  ======== placed it here<br />
<br />
};<br />
<br />
//{{AFX_INSERT_LOCATION}}<br />
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.<br />
<br />
#endif // !defined(AFX_FINDUSERDLG_H__8EF5BE4C_79B2_4F61_B376_E2A019C98B9C__INCLUDED_)


-- modified at 16:31 Monday 10th July, 2006
AnswerRe: Help solving: error C2653: 'FindUserDlg' : is not a class or namespace name Pin
Jun Du10-Jul-06 9:46
Jun Du10-Jul-06 9:46 
AnswerRe: Help solving: error C2653: 'FindUserDlg' : is not a class or namespace name Pin
RChin10-Jul-06 10:29
RChin10-Jul-06 10:29 
QuestionCreating performance counters Pin
Mike Dimmick10-Jul-06 6:49
Mike Dimmick10-Jul-06 6:49 
AnswerRe: Creating performance counters Pin
Jonathan [Darka]10-Jul-06 8:26
professionalJonathan [Darka]10-Jul-06 8:26 
AnswerRe: Creating performance counters Pin
Mike Dimmick10-Jul-06 23:41
Mike Dimmick10-Jul-06 23:41 
GeneralRe: list control Pin
FarPointer10-Jul-06 6:00
FarPointer10-Jul-06 6:00 
GeneralRe: list control Pin
jokefake10-Jul-06 6:44
jokefake10-Jul-06 6:44 
QuestionSorting a list with class for complex types [modified] Pin
Harold_Wishes10-Jul-06 5:26
Harold_Wishes10-Jul-06 5:26 
QuestionRe: Sorting a list with class for complex types Pin
David Crow10-Jul-06 5:31
David Crow10-Jul-06 5:31 
AnswerRe: Sorting a list with class for complex types Pin
Jun Du10-Jul-06 5:35
Jun Du10-Jul-06 5:35 
AnswerRe: Sorting a list with class for complex types [modified] Pin
FarPointer10-Jul-06 6:29
FarPointer10-Jul-06 6:29 
GeneralRe: Sorting a list with class for complex types [modified] Pin
Harold_Wishes10-Jul-06 7:02
Harold_Wishes10-Jul-06 7:02 
GeneralRe: Sorting a list with class for complex types [modified] Pin
FarPointer10-Jul-06 7:28
FarPointer10-Jul-06 7:28 
QuestionRe: Sorting a list with class for complex types Pin
David Crow10-Jul-06 7:36
David Crow10-Jul-06 7:36 
AnswerRe: Sorting a list with class for complex types [modified] Pin
Harold_Wishes10-Jul-06 7:48
Harold_Wishes10-Jul-06 7:48 
GeneralRe: Sorting a list with class for complex types [modified] Pin
FarPointer10-Jul-06 7:54
FarPointer10-Jul-06 7:54 
GeneralRe: Sorting a list with class for complex types [modified] Pin
Harold_Wishes10-Jul-06 8:09
Harold_Wishes10-Jul-06 8:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.