From f78f930435c7bcfd33571f686d4e0b480a8ad0f5 Mon Sep 17 00:00:00 2001 From: Shawwwn Date: Sun, 18 May 2014 02:18:30 -0700 Subject: [PATCH] Added version info --- H2OExtractor.dsp | 4 ++ Source/H2OExtractor.cpp | 4 +- resource.h | 15 ++++++ version.rc | 109 ++++++++++++++++++++++++++++++++++++++++ 4 files changed, 130 insertions(+), 2 deletions(-) create mode 100644 resource.h create mode 100644 version.rc diff --git a/H2OExtractor.dsp b/H2OExtractor.dsp index 935e38d..059b189 100644 --- a/H2OExtractor.dsp +++ b/H2OExtractor.dsp @@ -87,6 +87,10 @@ LINK32=link.exe # Begin Group "Resource Files" # PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe" +# Begin Source File + +SOURCE=.\version.rc +# End Source File # End Group # Begin Group "H2O" diff --git a/Source/H2OExtractor.cpp b/Source/H2OExtractor.cpp index 587df9f..cabb715 100644 --- a/Source/H2OExtractor.cpp +++ b/Source/H2OExtractor.cpp @@ -3,12 +3,12 @@ int main(int argc, char* argv[]) { - printf("H2OExtractor - fucckz 2014\n\n============================\n"); + printf("H2OExtractor v1.0 - fucckz\n\n============================\n"); // no command if (argc < 2) { printf("Usage:\n"); - printf("H2OExtractor \n"); + printf("H2OExtractor \n\n"); printf("Command:\n"); printf("extract - extract all file of archive to output dir\n"); printf("info - display infomations about the archive\n"); diff --git a/resource.h b/resource.h new file mode 100644 index 0000000..6cf0c78 --- /dev/null +++ b/resource.h @@ -0,0 +1,15 @@ +//{{NO_DEPENDENCIES}} +// Microsoft Developer Studio generated include file. +// Used by version.rc +// + +// Next default values for new objects +// +#ifdef APSTUDIO_INVOKED +#ifndef APSTUDIO_READONLY_SYMBOLS +#define _APS_NEXT_RESOURCE_VALUE 101 +#define _APS_NEXT_COMMAND_VALUE 40001 +#define _APS_NEXT_CONTROL_VALUE 1000 +#define _APS_NEXT_SYMED_VALUE 101 +#endif +#endif diff --git a/version.rc b/version.rc new file mode 100644 index 0000000..9ab70fb --- /dev/null +++ b/version.rc @@ -0,0 +1,109 @@ +//Microsoft Developer Studio generated resource script. +// +#include "resource.h" + +#define APSTUDIO_READONLY_SYMBOLS +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 2 resource. +// +#include "afxres.h" + +///////////////////////////////////////////////////////////////////////////// +#undef APSTUDIO_READONLY_SYMBOLS + +///////////////////////////////////////////////////////////////////////////// +// Chinese (Öйú) resources + +#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_CHS) +#ifdef _WIN32 +LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED +#pragma code_page(936) +#endif //_WIN32 + +#ifndef _MAC +///////////////////////////////////////////////////////////////////////////// +// +// Version +// + +VS_VERSION_INFO VERSIONINFO + FILEVERSION 1,0,0,0 + PRODUCTVERSION 1,0,0,0 + FILEFLAGSMASK 0x3fL +#ifdef _DEBUG + FILEFLAGS 0x1L +#else + FILEFLAGS 0x0L +#endif + FILEOS 0x40004L + FILETYPE 0x1L + FILESUBTYPE 0x0L +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040904b0" + BEGIN + VALUE "Comments", "\0" + VALUE "CompanyName", " \0" + VALUE "FileDescription", "H2OExtractor\0" + VALUE "FileVersion", "1, 0, 0, 0\0" + VALUE "InternalName", "H2OExtractor\0" + VALUE "LegalCopyright", "fucckz\0" + VALUE "LegalTrademarks", "\0" + VALUE "OriginalFilename", "H2OExtractor.exe\0" + VALUE "PrivateBuild", "\0" + VALUE "ProductName", " H2OExtractor\0" + VALUE "ProductVersion", "1, 0, 0, 0\0" + VALUE "SpecialBuild", "\0" + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x409, 1200 + END +END + +#endif // !_MAC + + +#ifdef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// TEXTINCLUDE +// + +1 TEXTINCLUDE DISCARDABLE +BEGIN + "resource.h\0" +END + +2 TEXTINCLUDE DISCARDABLE +BEGIN + "#include ""afxres.h""\r\n" + "\0" +END + +3 TEXTINCLUDE DISCARDABLE +BEGIN + "\r\n" + "\0" +END + +#endif // APSTUDIO_INVOKED + +#endif // Chinese (Öйú) resources +///////////////////////////////////////////////////////////////////////////// + + + +#ifndef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 3 resource. +// + + +///////////////////////////////////////////////////////////////////////////// +#endif // not APSTUDIO_INVOKED +