我把线程函数定义为CDialog的成员函数
UINT CSmsGatewayDlg::threadSub1(LPVOID pParam)
{
return 9999;
}然后在这个类的另一个成员函数里面启动线程
AfxBeginThread(threadSub1, this);编译的时候提示
D:\Projects\source\SMSHandler\SmsGatewayDlg.cpp(374) : error C2665: 'AfxBeginThread' : none of the 2 overloads can convert parameter 1 from type 'unsigned int (void *)'这是怎么回事?? 怎么改,我现在需要把这个线程定义成CSmsGatewayDlg的成员函数