I'm following MFC in VC++.net 2008...
I'm using threads in my codes. The code declared as

Code:
public:
	DWORD WINAPI ThreadProc(LPVOID lp);
and
Code:
BOOL CNewSerialPrintDlg::OnInitDialog()
{
	CDialog::OnInitDialog();
                 //bla bla....
                 HANDLE m_RecvThread=NULL;
	DWORD	ThreadID = 0;
	m_RecvThread = ::CreateThread(NULL,
				0,ThreadProc,NULL,0,&ThreadID
				);
	return TRUE;  // return TRUE  unless you set the focus to a control
}

DWORD WINAPI CNewSerialPrintDlg::ThreadProc(LPVOID lp)
{
	while(1)
	{

                  //bla bla.....
                  return 0;
               }
}
while compiling the error message reported as
Code:
error C3867: 'CNewSerialPrintDlg::ThreadProc': function call missing argument list; use '&CNewSerialPrintDlg::ThreadProc' to create a pointer to member
Plz help me to fix this problem.I don't have more experience on using Thread.