Windows(CodeBlocks) 純 C/C++ 在專案中 增加 版本資訊 和 顯示 版本資訊
資料來源:http://www.tk4479.net/bowa21c/article/details/17203339
https://msdn.microsoft.com/zh-tw/library/windows/desktop/aa381058(v=vs.85).aspx
GITHUB: https://github.com/jash-git/CB_Set_Get_Version.git
main.cpp
#include using namespace std; |
version.h
#ifndef VERSION_H namespace AutoVersion{ //Date Version Types //Software Status //Standard Version Type //Miscellaneous Version Types #define RC_FILEVERSION_STRING “0, 1, 0, 7\0” //要刪除bin和obj兩個目錄 //These values are to keep track of your versioning state, don’t modify them.
} |
resource.rc
#include “version.h” 1 VERSIONINFO |