afxbeginthread Error 11error C2665: 'AfxBeginThread' : none of the 2 overloads could convert all th
来源:互联网 发布:禾赛科技 知乎 编辑:程序博客网 时间:2024/05/01 11:50
afxbeginthread Error 11error C2665: 'AfxBeginThread' : none of the 2 overloads could convert all the argument types
网上有三种情况 ,自己对应修改
第一 , ThreadFunc 若定义在类中,作为类的成员函数,必须 定义为static类型,既静态成员变量;否则会出现标题一样的错误
第二,如果不定义在类中,必须定义为全局函数,否则会出现标题一样的错误
第三,如果定义为全局函数 需要注意一点,ThreadFunc 的返回类型必须是 UNIT,不能为void返回类型。本人出现的原因就是这一个
如
UINT playRtspVideoThread(LPVOID param); 正确
void playRtspVideoThread(LPVOID param); 错误
1 0
- afxbeginthread Error 11error C2665: 'AfxBeginThread' : none of the 2 overloads could convert all th
- error C2665: 'AfxBeginThread' : none of the 2 overloads can convert parameter 1 from type 'unsigned
- error C2665:'AfxBeginThread':none of the 2 overloads can convert parameter 1 from type 'unsigned int
- error C2665: 'AfxMessageBox' : none of the 2 overloads could convert all the argument types
- error C2665: none of the 2 overloads could convert all the argument types
- 错误error C2665: 'operator new' : none of the 5 overloads could convert all the argument types
- 错误error C2665: 'operator new' : none of the 5 overloads could convert all the argument types
- 'AfxBeginThread' : none of the 2 overloads can convert parameter 1 from type 'unsigned int (void *)'
- MFC error C2665: “AfxBeginThread”
- none of the 2 overloads can convert parameter 1 from type 'unsigned int (void *)'
- AfxBeginThread
- AfxBeginThread
- AfxBeginThread
- AfxBeginThread
- AfxBeginThread
- AfxBeginThread
- AfxBeginThread
- AfxBeginThread
- Python之美[从菜鸟到高手]--生成器之全景分析
- 五大常用算法之三:贪心算法
- 同洲盒子更改默认启动Portal
- Akka学习笔记(三):什么是Actor
- 编辑文章 - 博客频道 - CSDN.NET
- afxbeginthread Error 11error C2665: 'AfxBeginThread' : none of the 2 overloads could convert all th
- 申请商标的十个忠告
- 图片的即时上传显示
- hdu2034 人见人爱A-B
- Akka学习笔记(四):监督和监控
- MySQL分区技术 (一)
- 订制微信 发送给好友 分享到朋友圈 分享到微博
- Hbase的Hfile存储
- 关于内存的分类