随笔分类 - C++
摘要:函数名前的 ‘&’ 可以让你用 &函数名() 的方式获取返回值的地址 传参时候,参数para1 前面加&,在函数内改变para1 的值,函数外的para1 也会变,否则不变
阅读全文
摘要:1、std::string 转 int string valStr = "IconVisible"; int valInt = atoi(valStr.c_str()); 2、std::string 转 char* string valStr = "IconVisible"; const char*
阅读全文
摘要:1:下载入下面的dll 文件,一共有四个,文件名后缀带有-system32的两个文件, 去除“-system32”,并且存放到C:\Windows\System32中; 另外带有“-sysWOW64”,去除“-sysWOW64”,并且存放到C:\Windows\SysWOW64,在vs中调试程序成功
阅读全文
摘要:错误:C4996: 'inet_addr': Use inet_pton() or InetPton() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings 在vs2017 下soc
阅读全文
摘要:解决方案: 把工程设置里去掉UNICODE宏定义(VS) 项目->XXX属性->配置属性->常规->字符集 , 由使用Unicode字符集 改为 使用多字节字符集 参考:https://blog.csdn.net/lanshi00/article/details/103506740
阅读全文
摘要:参考:https://blog.csdn.net/m0_47584501/article/details/118461020 遇到问题:C++ 无法打开 源 文件 #include <json.h> 此句报错 解决方法: 项目-属性-VC++目录-包含目录:将json.h文件所在路径添加进去【C:\
阅读全文