5 Star 12 Fork 3

safedebug / xcguihelper

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
update.cpp 561 Bytes
一键复制 编辑 原始数据 按行查看 历史
safedebug 提交于 2016-05-03 18:43 . 修复bug,修复代码问题
#include "StdAfx.h"
#include "update.h"
bool HasNewVer()
{
CNetFile netFile;
if (netFile.Read(L"http://www.xcgui.com/bbs/forum.php?mod=viewthread&tid=1638&extra=page%3D1") != NULL)
{
std::string ver;
char* flags = "XCGUIHelper{";
char* pStart = StrStrA(netFile.GetStr(),"XCGUIHelper{");
if (pStart == NULL)
{
return false;
}
char* pEnd = StrStrA(pStart,"}");
if (pEnd == NULL)
{
return false;
}
ver.append(pStart+strlen(flags),pEnd);
if (atoi(ver.c_str()) > XCGUIHELPERVER)
{
return true;
}
}
return false;
}
C++
1
https://gitee.com/safedebug/xcguihelper.git
git@gitee.com:safedebug/xcguihelper.git
safedebug
xcguihelper
xcguihelper
master

搜索帮助