自定义CMySocket类,派生于CAsyncSocket类,
重载它的三个方法OnConnect,OnAccept,OnReceive如下:class CMySocket : public CAsyncSocket
{
public:
CMySocket();
virtual ~CMySocket(); virtual void OnAccept(int nErrorCode);
virtual void OnConnect(int nErrorCode);
virtual void OnReceive(int nErrorCode);         ......
         ......
};编译CMySocket.cpp文件可以通过,但是链接时出现如下问题:MySocket.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CMySocket::OnConnect(int)" (?OnConnect@CMySocket@@UAEXH@Z)
MySocket.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CMySocket::OnAccept(int)" (?OnAccept@CMySocket@@UAEXH@Z)
MySocket.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CMySocket::OnReceive(int)" (?OnReceive@CMySocket@@UAEXH@Z)请大侠指点是什么原因!如何解决。谢谢