1、如何设置版本号
1.右键添加资源
2.新建Version项
3.编写或者修改版本信息
2、建立读取版本号类
1. 头文件
#pragma once
#pragma comment(lib, "version.lib")
#include <QObject>
#include <windows.h>
#include <tchar.h>
class VersionUpdate
{
public:
QString GetVersion();
private:
};
2.cpp文件
#include "vvvvv.h"
QString VersionUpdate::GetVersion()
{
// Max length of file name/path
int nMaxPathName = 4096;
TCHAR* pBuffer;
UINT nItemLength;
void* pData,