I've worked around this by creating a dialog box that I pop up after calling Connect()... i.e.:
This suspends the thread until MySocket sends a WM_CLOSE message to DummyDialog. I'd rather it look like:
But that stops all processing of MySocket.
Cynthia Jennings (idlewild@is.net), programmer.win32, 6/19/95