afmiga
2006-03-05 09:34:26 UTC
I am trying to use CSocket::OnReceive() but have seen lots of postings that
the MFC under VC++ 6.0 (I have SP6) may have stability problems with this
class and suggestions that the CAsyncSocket should be used instead. The
problem is that Connect() did work fine with my CSocket but it returns error
10035 with CAsyncSocket. I have traced the issue to differences in
ConnectHelper() which is called from Connect(). The ConnectHelper() is
overridden in CSocket and it does some message manipulation before calling
CAsyncSocket::ConnectHelper() which then succeeds.
At this point I am unable to discover what the issue is that the
CAsyncSocket::Connect() would fail, but CSocket::Connect() works.
No other code changes, only "CSocket socket;" to "CAsyncSocket socket;"
causes the different behavior.
Thanks in advance for ideas or hints.
--
Andy Miga
the MFC under VC++ 6.0 (I have SP6) may have stability problems with this
class and suggestions that the CAsyncSocket should be used instead. The
problem is that Connect() did work fine with my CSocket but it returns error
10035 with CAsyncSocket. I have traced the issue to differences in
ConnectHelper() which is called from Connect(). The ConnectHelper() is
overridden in CSocket and it does some message manipulation before calling
CAsyncSocket::ConnectHelper() which then succeeds.
At this point I am unable to discover what the issue is that the
CAsyncSocket::Connect() would fail, but CSocket::Connect() works.
No other code changes, only "CSocket socket;" to "CAsyncSocket socket;"
causes the different behavior.
Thanks in advance for ideas or hints.
--
Andy Miga