-
-
[旧帖] [求助]定义WSARecvFrom函数的原型,编译报错,懂的大侠请进 0.00雪花
-
发表于: 2008-10-5 22:13 3081
-
定义WSARecvFrom函数的原型
int (__stdcall *WSARecvFrom1)(SOCKET,LPWSABUF,DWORD,LPDWORD,LPDWORD,struct sockaddr FAR *,LPINT,LPWSAOVERLAPPE,LPWSAOVERLAPPED_COMPLETION_ROUTINE);
编译报错,一个一个尝试,报错的为黑体部分参数。为何办法解决呢?
VC环境报错如下:
error C2199: syntax error : found 'int (' at global scope (was a declaration intended?)
执行 cl.exe 时出错
int (__stdcall *WSARecvFrom1)(SOCKET,LPWSABUF,DWORD,LPDWORD,LPDWORD,struct sockaddr FAR *,LPINT,LPWSAOVERLAPPE,LPWSAOVERLAPPED_COMPLETION_ROUTINE);
编译报错,一个一个尝试,报错的为黑体部分参数。为何办法解决呢?
VC环境报错如下:
error C2199: syntax error : found 'int (' at global scope (was a declaration intended?)
执行 cl.exe 时出错
[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!
赞赏
他的文章
看原图
赞赏
雪币:
留言: