winrash bug

Chris Morgan cmorgan at
Fri Feb 11 17:20:51 CST 2005

Great!  I had no idea if it was a single or multiple dlls that made up 
winsock2, this looks like a great way to detect it.  I'm almost certain that 
there is NSIS code that can check for the ability to load up a dll.  I'll put 
that in.


On Friday 11 February 2005 7:53 am, you wrote:
> 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).

More information about the wine-devel mailing list