> I am writing a 32-bit networking program which should run in WIN NT and
>I am confused whether I should call WSOCK32.DLL (32-bit winsock 1 APIs) or
>WS2_32.DLL (32-bit winsock 2 APIs). I know that 95 has no build-in
>and we have to install it manually. Besides WSAEnumProtocols of WS2_32.DLL
>seems NOT work in 95. Any body can tell which one is suitable for my
>And is there any good books for programming NT/95 networks?
Why not do both? Try and do a LoadLibrary on WS2_32.DLL - if it
succeeds, then you can use the Winsock 2.0 function calls (when they
work), and if it fails, simply do another LoadLibrary, but on
WSOCK32.DLL instead. Then use the Winsock 1.1 function calls. Note
that you can LoadLibrary on WS2_32.DLL and use Winsock 1.1 function
calls, so if all you're using is WS1.1, you will still benefit from
having both LoadLibrary calls in there.
A couple of provisos for tech support:
A dialog box that says "The parameter entry point QueueUserAPC could not
be located in the dynamic link library KERNEL32.dll" means that someone
copied NT 4.0's WS2_32.DLL onto Windows NT 3.51 - a platform that
will _never_ have Winsock 2.0 installed (at least with current plans).
An error return from a call to the socket() function that has the code
"WSAESOCKTNOSUPPORT" returned from WSAGetLastError indicates that the
Windows 95 WS2_32.DLL has been copied into a Windows 95 system, but the
supporting parts of the Winsock 2.0 package have not.
Note that VXtreme's 2.2 Web Theater Client (acknowledged in only one
place on their web site as a beta version, and in others as the "New
Release") has been pulling just such a stupid stunt in its installs
since it was released in the beginning of July. I don't feel bad about
telling on them, because I informed them of this problem within days of
the beta's release, was told that it would be fixed, and yet I still
have to support a problem of their making, which they refuse to fix or
Texas Imperial Software | Try WFTPD, the Windows FTP Server.
1602 Harvest Moon Place | Available at the web site
Cedar Park TX 78613 | http://www.wftpd.com
Phone +1 (512) 257 2578 | Now accepting credit card orders!
***** WFTPD Pro, an NT Service FTP Server supporting multiple *****
** simultaneous virtual hosts, is now available for $80 per copy **