LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

winsock.dll damaged

Hi,

I try to build an import library from winsock.h. But once the winsock.dll selected, I get a pop-up telling me that the dll is damaged !!

Why, it's the microsoft dll in my sytem32 directory. I try to dowload other winsock.dll bur there is still the same problem. Is my winsock.h correct (I use the /sdk/include/winsock.h) ?

Actually, I got link problem and I try to solve them by building an import library.

Regards,
0 Kudos
Message 1 of 2
(3,148 Views)
You shouldn't be building import libraries for Microsoft's SDK files. All the libraries are already provided in cvi\sdk\lib. In this case, you need to include wsock32.lib in your project if you want to use the winsock.h function. The Windows SDK help will tell you the name of the header and library you need to include to use the SDK functions.

By the way, the reason you are getting that error is that the DLL for winsock is actually wsock32.dll, not winsock.dll so it isn't looking right to the compiler. Microsoft will frequently have headers and libraries named differently.

Best Regards,

Chris Matthews
National Instruments
Message 2 of 2
(3,148 Views)