BOOL CDNSProDlg::OnInitDialog()
{
CBCGPDialog::OnInitDialog();
// initialize port [4/22/2010 Administrator]
AfxSocketInit(NULL); // Create socket for sending/receiving datagrams
if (0==g_sockeServer.Create(53,SOCK_DGRAM)||0==g_sockeClient.Create(0,SOCK_DGRAM))
{
AfxMessageBox("Create() failed");
} CreateThread(NULL,0,ReceiveData,this,0,&id1);
CreateThread(NULL,0,REPReceiveData,this,0,&id2); // TODO: Add extra initialization here
return TRUE; // return TRUE unless you set the focus to a control
}总是出现错误 user breakpoint called from code at 0x7c92120e
{
CBCGPDialog::OnInitDialog();
// initialize port [4/22/2010 Administrator]
AfxSocketInit(NULL); // Create socket for sending/receiving datagrams
if (0==g_sockeServer.Create(53,SOCK_DGRAM)||0==g_sockeClient.Create(0,SOCK_DGRAM))
{
AfxMessageBox("Create() failed");
} CreateThread(NULL,0,ReceiveData,this,0,&id1);
CreateThread(NULL,0,REPReceiveData,this,0,&id2); // TODO: Add extra initialization here
return TRUE; // return TRUE unless you set the focus to a control
}总是出现错误 user breakpoint called from code at 0x7c92120e
解决方案 »
- ATL控件右键弹出菜单消息响应的问题
- vc 用CDatabase类和CRecordset类连接局域网sql sever 2000服务器
- 怎样读取ply格式的文件,高手给指点下
- CoCreateInstance在什么情况下会返回-2147467262呢
- 询问基础问题
- 【vc++】如何将MoveTo等函数绘制的线条保存为BMP格式
- 一个关于ReadFile()的问题
- [ 提问 ]如何才能SubClass别的进程的窗口?
- 再次提出超难超偏问题。对CDC超熟悉的给指点一下
- 问一个很菜的问题^_^,请大家帮帮忙!!!
- 子对话框透明显示了主对话框的控件
- 如何通过已做好的Slider旋钮控件改变进程控件的值?
// Create socket for sending/receiving datagrams
if (0==g_sockeServer.Create(53,SOCK_DGRAM)||0==g_sockeClient.Create(0,SOCK_DGRAM))
{
AfxMessageBox("Create() failed");
}
没问题 等创建第二个线程就出问题了 哪位高手知道