如上,我有一个CALLBACK,调用定义其他的类函数时却说该函数没有定义,为什么?
void CALLBACK Listen(SOCKET s, int ServerPort, const char *ClientIP)
void CMySocketDlg::OnConnect()/类函数
void CALLBACK Listen(SOCKET s, int ServerPort, const char *ClientIP)
void CMySocketDlg::OnConnect()/类函数
怎么把this传进去啊?
还有编写PB能调用的DLL,里面的STRING什么表示啊
{
const char *ClientIP;
CMyClass *_this;
};
传递const char *ClientIP时,传递一个struct指针,到了函数里面再强制转化回来。