On Tue, 8 Feb 2005, Chris Morgan wrote:
Oh, that's mostly because I was lazy. I'm pretty sure the text says that "if you are on windows95 you should install winsock2". I'm not sure how to detect whether the user needs to install winsock2 or not by looking at dlls.
[...]
Maybe something lkie this would do?
hdll=LoadLibrary("ws2_32.dll"); if (!hdll) { /* You need to install winsock2 */ ... }
Principle taken from autoconf: Check for features, not for the platform, OS version, etc. The above tries to load winsock2 so it will only complain if it is really missing (checking for Windows 95 would complain whether winsock2 is already installed or not).