- 博客(15)
- 收藏
- 关注
原创 Windows 7 下使用 VS2017 编译 libmp4v2
Windows 7 下使用 VS2017 编译 libmp4v2一、下载mp4v2源码Google官网mp4v2源码阿里云盘二、编译直接用VS打开解决方案mp4v2\releases\2.0.0\vstudio9.0\mp4v2.sln编译即可。三、遇到的问题及解决方案下面这两个问题在VS2010和VS2013上都没有,可以直接编译通过。1、error C2371: “int8_t”: 重定义;修改mp4v2\releases\2.0.0\include\mp4v2\platform.h
2021-09-10 10:41:10
507
原创 Windows 7 VS2017 编译32位cpprest
Windows 7 VS2017 编译32位cpprest如无特殊说明,命令都是在cmd下执行。一、源码克隆1、cpprestsdkE:\>git clone https://github.com/microsoft/cpprestsdk2、vcpkgE:\cpprestsdk>git clone https://github.com/microsoft/vcpkg3、websocketppE:\cpprestsdk\Release\libs>git clone git:/
2021-09-09 15:25:01
2918
原创 编译 nginx + http-flv 模块
Windows下编译 nginx + http-flv 模块一、源码准备1、下载nginx官网上下载的缺少文件编译会有错误,使用github上的版本。下载链接https://github.com/nginx/nginx/releases2、下载PCRE3、下载zlib4、下载OpenSSL5、下载nginx-http-flv-module二、编译环境准备1、下载安装MSYS2下载链接https://www.msys2.org,默认安装即可。2、下载安装Strawberry Perl下
2021-07-08 16:27:07
2324
原创 错误C1083无法打开预编译头文件: “Debug\XXX.pch”: No such file or directory 的解决方法
错误C1083无法打开预编译头文件: “Debug\XXX.pch”: No such file or directory
2020-12-05 17:28:43
1240
原创 C#开启大地址内存
原文https://www.cnblogs.com/lxmzq/articles/12427174.html1、开启大地之内存执行命令editbin /largeaddressaware exe文件这里以pack.exe为例2、验证是否确实开启了大地址执行命令:dumpbin /headersexe文件...
2020-09-01 14:33:03
1114
原创 C++使用正则表达式判断IP有效性
#include <regex>#include <vector>#include <fstream>// 判断IP是否有效bool IsValidIP(const std::string& strIP){ std::regex regExpress("(?=(\\b|\\D))(((\\d{1,2})|(1\\d{1,2})|(2[0-4]\\d)|(25[0-5]))\\.){3}((\\d{1,2})|(1\\d{1,2})|(2[0-4]
2020-06-20 18:44:06
1587
原创 Windows下获取屏幕坐标及分辨率
#include <windows.h>#include <string>#include <vector>#include <algorithm>int main(int argc, char** argv){ std::vector<RECT> vecScreenList; DISPLAY_DEVICE stDispDev = { 0 }; BOOL bRet = FALSE; int nDevNum
2020-06-20 17:41:03
3485
原创 C++之std::sort排序
C++之std::sort排序#include <algorithm>#include <vector>#include <functional>// 自定义的函数bool my_greater(int& a, int& b){ return a > b;}int main(int argc, char** argv){ std::vector<int> vec; vec.push_back(5)
2020-06-20 16:31:07
899
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人