2022年8月30日
摘要: 我的异步选择模型 #include "afxsock.h" 我的事件选择模型 #include "winsock2.h" 试了好多方法,都是重定义或未定义。 统一换成winsock2.h,报错: mfc不能包括windows.h 后来换成afxsock.h就好了。 阅读全文
posted @ 2022-08-30 18:36 闻缺陷则喜何志丹 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 为什么有时可以在头文件可以定义变量,有时不行(变量重定义)。 头文件中只能定义常量。如:const int x; 阅读全文
posted @ 2022-08-30 09:17 闻缺陷则喜何志丹 阅读(3) 评论(0) 推荐(0) 编辑