error C2664: 'CreateThread' : cannot convert parameter 3 from 'int (void *)'
来源:互联网 发布:猎豹数据恢复电脑版 编辑:程序博客网 时间:2024/05/17 03:29
#include <windows.h>
#include <iostream>
using namespace std;
DWORD WINAPI FunProc(LPVOID)
{
}
int main()
{
}
编译后提示如下错误:
error C2664: 'CreateThread' : cannot convert parameter 3 from 'unsigned long (void *)' to 'unsigned long (__stdcall *)(void *)
提示是第三个参数错了。实际上时最好一个参数错了。
很多人都习惯把最后一个参数设置为NULL。所以出错了。
下面是正确的写法:
#include <windows.h>
#include <iostream>
using namespace std;
DWORD WINAPI FunProc(LPVOID)
{
}
int main()
{
}
- error C2664: 'CreateThread' : cannot convert parameter 3 from 'int (void *)'
- error C2664: 'CreateThread' : cannot convert parameter 3 from 'int (void *)'
- error C2664: 'CreateThread' : cannot convert parameter 3 from 'unsigned long (void *)' to 'unsigned long (__stdcall *)(void *)'
- error C2664: 'RtCreateTimer' : cannot convert parameter 3 from 'int (void *)' to 'void (__stdcall *)(void *)'问题解决办法
- _stdcall的说明及error C2664: 'CreateThread' : cannot convert parameter 3 from 'unsigned long (void *)' t
- error C2664: 'CreateThread' : cannot convert parameter 3 from 'unsigned long (void *)' to 'unsigned
- error C2664: 'cvSetMouseCallback' : cannot convert parameter 2 from 'void (int,int,int,int,void *)'
- error C2664: 'cvSetMouseCallback' : cannot convert parameter 2 from 'void (__cdecl *)(int,int,int,int)' to 'CvMouseCallback' 的解决
- error C2664: 'cvSetMouseCallback' : cannot convert parameter 2 from 'void (__cdecl *)(int,int,int,int)' to 'CvMouseCallback' 的解决
- (菜鸟级别)解决用VC创建新线程易出的问题error C2664: 'CreateThread' : cannot convert parameter 3 from 'unsigned long (void *)' to 'unsigned long (_
- 用VC创建新线程易出的问题error C2664: 'CreateThread' : cannot convert parameter 3 from 'unsigned long (void *)' to 'unsigned long (__stdcall
- error:error C2664: 'calc' : cannot convert parameter 2 from 'int' to 'int []' Conversion fro
- error C2664: 'LONG CTabCtrl::InsertItem(int,TCITEMW *)' : cannot convert parameter 2 from 'char *' t
- error C2664: 'atof' : cannot convert parameter 1 from 'int' to 'const char *'
- error C2664: 'LONG CTabCtrl::InsertItem(int,TCITEMW *)' : cannot convert parameter 2 from 'char *' t
- error C2664: 'int CListCtrl::InsertColumn(int,LPCTSTR,int,int,int)' : cannot convert parameter 2 from 'const char [7]' to 'LPCTS
- error C2664: 'MessageBoxW' : cannot convert parameter 2 from
- error C2664: 'cvSetMouseCallback' : cannot convert parameter 2 from ....to'CvMouseback'
- @Override must override a superclass method 问题解决
- python map函数,filter,reduce
- STL vector用法介绍
- Context 看资料后自己的小总结
- iOS开发之多线程—GCD介绍
- error C2664: 'CreateThread' : cannot convert parameter 3 from 'int (void *)'
- 基于android的朋友圈
- 百分百安装成功genymotion教程 eclipse插件 genymotion错误解决
- scrollview 添加拖拽后失去按钮滑动功能的修复方案
- qt+opencv3.0配置
- [KaliLinux2.0]关于VisualBox和VMWare的配置问题
- Maven 初始
- PopupWindow的使用注意
- Kalendae:JavaScript日期选择和日历控件使用