I'm following MFC in VC++.net 2008...
I'm using threads in my codes. The code declared as
andCode:public:
DWORD WINAPI ThreadProc(LPVOID lp);
while compiling the error message reported asCode: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;
}
}
Plz help me to fix this problem.I don't have more experience on using Thread.Code:error C3867: 'CNewSerialPrintDlg::ThreadProc': function call missing argument list; use '&CNewSerialPrintDlg::ThreadProc' to create a pointer to member