/UpdateVersion

版本更新系统,基于C++编写的下载文件程序

Primary LanguageC++

UpdateVersion

版本更新 版本更新 logo

简介

版本更新系统,基于C++编写的下载文件程序。本程序的设计目的是,如果系统复杂,配置文件繁多,在版本更新或者更新程序的时候,需要有较专业的知识,

将不同的更新文件复制到不同的路径下,这对技术服务人员或者现场工作人员的要求较高。为了降低或者消除这种压力,故设计了这个更换程序的更新系统。

只需要点击下按钮,就可以实现更新了。

先决条件

本程序是在 Visual Studio 2010 下生成的 EXE 可执行程序。

所需动态库文件:

UrlMon.h
UrlMon.Lib

系统配置文件: 默认生成

数据库文件: 无

软件界面

注意事项

版本更新

版本号:1.0.0.1 -- [2019-08-17]

主要更新如下:

  1. 增加了服务器网址和文件保存路径的配置;

  2. 通过正则匹配网页中指定的文件类型;

关键代码:

搜索关键词: GetDataFromHtml

afx_msg bool GetDataFromHtml(const char *html, regex patterns,std::vector<CString> &results)
	{
		std::smatch match;
		std::string html_data = html;
		while (std::regex_search(html_data, match, patterns))
		{
			results.push_back(match[0].str().c_str());
			html_data = match.suffix();
		}

		if(results.size()>0)
			return true;
		else
			return false;
	}

作者

  • ** 冯东海 **

许可证

该项目根据MIT许可证授权。

版权所有?2019 ****************公司