Click here to Skip to main content
15,899,754 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted

I guess you could adapt the first radar library via an intermediate DLL (you'll use older winsock just for such DLL development).
:)
 
Share this answer
 
Comments
Ruscoff 15-Sep-10 4:56am    
Reason for my vote of 5
Automatic vote of 5 for accepting answer.
Ruscoff 15-Sep-10 4:57am    
Resolve, i upgrade old library with new sock2 header and it seems work correctly
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?
 
Share this answer
 
Comments
CPallini 15-Sep-10 4:08am    
So you've just to include the DLL header file in you application (and winsock.h isn't really needed).
Ruscoff 15-Sep-10 4:15am    
I include only DLL header, but they include winsock.h and if i can't comment that include because some header file declare socket object.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900