I created a full control object in the ATL project with MFC supported, and a MFC's CSocket was inserted as a listening socket. I had trouble creating the CSocket object in ATL COM STDMETHODIMP method,and no error occurred.
m_pSocket->Create(<PORT NUMBER>) would return FALSE.
An AfxMessageBox was incorporated in the code to display the result. Can CSocket be used in ATL COM in-proc server? Or I made some mistake?