16- vs 32-bit Winsocks
Posted on 1997-06-12
I'm writing an Internet card game (16-bit in C) that can also be played "standalone," so I'm using LoadLibrary to load Winsock.dll. To be sure I load the correct Winsock, I use GetModuleHandle and GetModuleFileName. However, when I connect to the Internet using America Online for Win95 (32-bit), my app cannot find the Winsock.
Can my 16-bit app connect via a 32-bit Winsock? If so, how do I find and hook into it? (Or is this just an AOL thing?) If not, what will I need to do to hook into the user's Winsock (besides doing a 32-bit build of my app)?
In short, how can I be certain to always find and connect through any user's Winsock, yet maintain the game's ability to be played by non-internet users?