MFC winsock1和2 [英] MFC winsock1 and 2

查看:131
本文介绍了MFC winsock1和2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好
我的项目很麻烦.
我必须将两个雷达连接到我的程序,但是第一个具有使用Winsock的自己的库,而第二个则希望使用Winsock2.
我怎样才能做到这一点?
目前,我在winsock.h和winsock2.h中遇到了许多通常包含的重新定义错误.

在此先感谢您提供任何答案

Hi all
I''m deep in trouble with my project.
I have to link two radar with my program, but the first have your own library that use winsock while in the second i''ll wish use winsock2.
How can i do that?
At the moment i get many typically redefinition error of include within winsock.h and winsock2.h .

Thank you in advanced for any answer

推荐答案

我想您可以通过中间的DLL修改第一个雷达库(为此您将使用较旧的winsock DLL开发).
:)
I guess you could adapt the first radar library via an intermediate DLL (you''ll use older winsock just for such DLL development).
:)


考虑到点火雷达库已经是DLL,我只有标头和lib文件.

所以,如果我仍然可以做(我是这些事情的初学者),您有什么例子吗?
Take in account that the firse radar library is already an DLL, i''ve got only header and lib file.

So, if i can do anyway (i''m begginer with these things), do you have some example?


这篇关于MFC winsock1和2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆