18,356
社区成员
发帖
与我相关
我的任务
分享
A::OnInitDialog()
{
。。。。
B b;
b.doModal();
。。。。
}
B::OnInitDialog()
{
。。。。
c.Create(0,SOCK_DGRAM);// C c是对象b的成员变量
。。。。
}
C::OnReceive(int nErrorCode)
{
。。。。
}
那么问题就转化成我要在C::OnReceive(int nErrorCode)中使用b的句柄,