我把线程函数定义为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的成员函数
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的成员函数
解决方案 »
- 设计可以选中、修改、编辑的点、直线类
- 按钮填充图片问题
- odbc中如何打开记录集?
- 菜鸟求助一个入门问题??
- unicodedebug支持?
- 怎样判断输入的路径字符串是否合法?
- VC-OLE DB-SQL Server问题(急,不解决就没得饭吃了)
- ★150元 求获得winxp,vista唯一的硬件信息
- About Unhandled exception? anyone can help me, interpret to me?
- odbc问题:何时使用CRecordSet子类的Open和Close函数?一开始的状态是Open还是Close?
- ATL中_Module怎样实现调用某个类
- 有35岁以上的吗?帮帮我, 被情捆住了,捆住了
D:\Projects\source\SMSHandler\SmsGatewayDlg.cpp(333) : error C2724: 'threadSub1' : 'static' should not be used on member functions defined at file scope