
C++
酷侠一剑绝ggh
程序猿
展开
-
VS2015 Error C1189:Windows. h already included. MFC apps must not #include <windows.h>
vs2015 C1189原创 2020-12-11 18:19:21 · 1011 阅读 · 0 评论 -
UDP组播通信(解决端口复用的问题)
最近在写一个组播通信的功能,结果发现接受同一台电脑上只能运行一个接收端,如果运行两个时,第二个运行的程序不能收到数据。查找原因是因为没有设置端口数据复用的功能(setsockpot),setsockpot的调用见代码。//发送端// Send.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。//#include<WinSock2.h>#include <iostream>#include <Ws2tcpip.h>#pragma c原创 2020-07-12 13:57:52 · 8759 阅读 · 4 评论 -
Visual Studio设置开发环境为C++或者其他环境的方法
Vs设置开发环境为C++需要以下几个步骤:1.打开Vs2015软件(VisualStudio2015);2.选择菜单栏的“工具”,3.选择“导入和导出设置”,弹出“导入和导出设置向导”对话框,4.选择“重置所有设置”选项,并单击“下一步”的按钮,5.选择“否,仅重置设置,从而覆盖我的当前设置”,继续下一步,6.选择左侧的“Visual C++”,并完成。7.设置完成。...原创 2020-04-08 17:34:50 · 10449 阅读 · 0 评论 -
error lnk 2005 atlsd.lib
1>atlsd.lib(Externs.obj) : error LNK2005: "char const * const g_pszUpdateEventName" (?g_pszUpdateEventName@@3PBDB) 已经在 atls.lib(Externs.obj) 中定义1>atlsd.lib(Externs.obj) : error LNK2005: "char const原创 2017-09-07 20:12:31 · 1612 阅读 · 0 评论 -
Error 1 error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup LI
Error 1error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartupLIBCMT.lib Error 2fatal error LNK1120: 1 unresolved externals F:\study file\training\test1\Deb原创 2017-09-26 22:11:42 · 679 阅读 · 0 评论 -
error C2679: binary '<<' : no operator found 解决办法
error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'std::string' (or there is no acceptable conversion)原创 2017-11-18 21:39:57 · 5567 阅读 · 1 评论 -
Visual Studio 编译器语法提示不能正确出现的原因
问题描述:用VS编译器写程序时遇到语法不能正确提示的现象,并且编译器最下面会提示如下信息:IntelliSense:‘ Expression to the left of . or-> has a type which could not be resolved’(see 'Troubleshooting Intellisnese in C++ Project' for further hel原创 2018-01-21 17:34:28 · 4472 阅读 · 0 评论 -
应用程序无法找到入口
运行一个OpenGL应用程序,系统弹出如下错误提示框:无法定位程序输入点__glutCreateWindowWithExit 于动态链接库glut32.dll上。原因:运行程序无法找到glut32.dll动态链接库,所以出错!解决办法:把glut32.dll库加入到exe程序的目录下,问题解决。原创 2018-01-28 20:31:27 · 11341 阅读 · 1 评论