在对话框中建立一个socket连接,如何在释放对话框之后保存这个连接以备以后使用? 谢谢! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 用全局变量保存socket。关闭对话框的时候不要关闭socket。 改为全局变量后,出现以下错误:Linking...BSDConfigWnd.obj : error LNK2005: "class CSpyClientSocket g_ClientSocket" (?g_ClientSocket@@3VCSpyClientSocket@@A) already defined in BSDConfigView.objBSDStateView.obj : error LNK2005: "class CSpyClientSocket g_ClientSocket" (?g_ClientSocket@@3VCSpyClientSocket@@A) already defined in BSDConfigView.objBSDStateWnd.obj : error LNK2005: "class CSpyClientSocket g_ClientSocket" (?g_ClientSocket@@3VCSpyClientSocket@@A) already defined in BSDConfigView.objChildFrm.obj : error LNK2005: "class CSpyClientSocket g_ClientSocket" (?g_ClientSocket@@3VCSpyClientSocket@@A) already defined in BSDConfigView.objLoginDlg.obj : error LNK2005: "class CSpyClientSocket g_ClientSocket" (?g_ClientSocket@@3VCSpyClientSocket@@A) already defined in BSDConfigView.objMainFrm.obj : error LNK2005: "class CSpyClientSocket g_ClientSocket" (?g_ClientSocket@@3VCSpyClientSocket@@A) already defined in BSDConfigView.objSpyBSD.obj : error LNK2005: "class CSpyClientSocket g_ClientSocket" (?g_ClientSocket@@3VCSpyClientSocket@@A) already defined in BSDConfigView.objSpyBSDDoc.obj : error LNK2005: "class CSpyClientSocket g_ClientSocket" (?g_ClientSocket@@3VCSpyClientSocket@@A) already defined in BSDConfigView.objSpyClientSocket.obj : error LNK2005: "class CSpyClientSocket g_ClientSocket" (?g_ClientSocket@@3VCSpyClientSocket@@A) already defined in BSDConfigView.objRestartDlg.obj : error LNK2005: "class CSpyClientSocket g_ClientSocket" (?g_ClientSocket@@3VCSpyClientSocket@@A) already defined in BSDConfigView.objRelease/SpyBSD.exe : fatal error LNK1169: one or more multiply defined symbols foundError executing link.exe.SpyBSD.exe - 11 error(s), 0 warning(s) MFC中picture控件显示图片 CFileDialog打开文件的问题 如何求取图片的颜色直方图 请教2个编译错误的问题 ▁▂▃▄▅在线结贴▅▄▃▂▁mfc中TRY CATCH ENDCATCH是不是有些多余 如何监控网络邻居,在何时对共享文件进行了什么样的操作 位图 如何捕捉Edit的KeyDown或KeyPress消息?(现在没分了,日后补上) Hook WinInet的MFC代码? 111222(找工作中...)请进来回答问题 ※ 数据类型转换 多视图框架问题
Linking...
BSDConfigWnd.obj : error LNK2005: "class CSpyClientSocket g_ClientSocket" (?g_ClientSocket@@3VCSpyClientSocket@@A) already defined in BSDConfigView.obj
BSDStateView.obj : error LNK2005: "class CSpyClientSocket g_ClientSocket" (?g_ClientSocket@@3VCSpyClientSocket@@A) already defined in BSDConfigView.obj
BSDStateWnd.obj : error LNK2005: "class CSpyClientSocket g_ClientSocket" (?g_ClientSocket@@3VCSpyClientSocket@@A) already defined in BSDConfigView.obj
ChildFrm.obj : error LNK2005: "class CSpyClientSocket g_ClientSocket" (?g_ClientSocket@@3VCSpyClientSocket@@A) already defined in BSDConfigView.obj
LoginDlg.obj : error LNK2005: "class CSpyClientSocket g_ClientSocket" (?g_ClientSocket@@3VCSpyClientSocket@@A) already defined in BSDConfigView.obj
MainFrm.obj : error LNK2005: "class CSpyClientSocket g_ClientSocket" (?g_ClientSocket@@3VCSpyClientSocket@@A) already defined in BSDConfigView.obj
SpyBSD.obj : error LNK2005: "class CSpyClientSocket g_ClientSocket" (?g_ClientSocket@@3VCSpyClientSocket@@A) already defined in BSDConfigView.obj
SpyBSDDoc.obj : error LNK2005: "class CSpyClientSocket g_ClientSocket" (?g_ClientSocket@@3VCSpyClientSocket@@A) already defined in BSDConfigView.obj
SpyClientSocket.obj : error LNK2005: "class CSpyClientSocket g_ClientSocket" (?g_ClientSocket@@3VCSpyClientSocket@@A) already defined in BSDConfigView.obj
RestartDlg.obj : error LNK2005: "class CSpyClientSocket g_ClientSocket" (?g_ClientSocket@@3VCSpyClientSocket@@A) already defined in BSDConfigView.obj
Release/SpyBSD.exe : fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe.SpyBSD.exe - 11 error(s), 0 warning(s)