Skip to content

Commit

Permalink
Add version information to resource
Browse files Browse the repository at this point in the history
  • Loading branch information
fiore57 committed Oct 1, 2020
1 parent 55ed8a0 commit 5c9dc09
Show file tree
Hide file tree
Showing 6 changed files with 81 additions and 28 deletions.
2 changes: 1 addition & 1 deletion SandSExe/Config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include "pch.hpp"
#include "Singleton.hpp"
#include "resource.h"
#include "resource.hpp"
#include <algorithm>

class Config final : public Singleton<Config> {
Expand Down
36 changes: 33 additions & 3 deletions SandSExe/SandSExe.rc
Original file line number Diff line number Diff line change
@@ -1,6 +1,36 @@
#include "resource.h"
#include <windows.h>
#include "resource.hpp"

#include "windows.h"
// Version Information

1 VERSIONINFO
FILEVERSION VER_FILEVERSION
PRODUCTVERSION VER_PRODUCTVERSION
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
FILEFLAGS ( VER_DEBUG | VER_PRIVATE )
FILEOS VOS_NT_WINDOWS32
FILETYPE VFT_APP
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904b0"
BEGIN
VALUE "Comments", VER_STR_COMMENTS
VALUE "CompanyName", VER_STR_COMPANYNAME
VALUE "FileDescription", VER_STR_FILEDESCRIPTION
VALUE "FileVersion", VER_STR_FILEVERSION
VALUE "InternalName", VER_STR_INTERNALNAME
VALUE "OriginalFileName", VER_STR_ORIGINALFILENAME
VALUE "LegalCopyright", VER_STR_LEGALCOPYRIGHT
VALUE "ProductName", VER_STR_PRODUCTNAME
VALUE "ProductVersion", VER_STR_PRODUCTVERSION
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 1200
END
END

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
LANGUAGE 9, 1
Expand Down Expand Up @@ -43,7 +73,7 @@ CAPTION "About SandSExe"
FONT 8, "MS Shell Dlg"
BEGIN
ICON IDR_MAINFRAME,IDC_STATIC,14,14,21,20
LTEXT "SandSExe, Version 1.0",IDC_STATIC,42,14,114,8,SS_NOPREFIX
LTEXT "SandSExe, Version 1.0.0",IDC_STATIC,42,14,114,8,SS_NOPREFIX
LTEXT "Copyright (c) 2020",IDC_STATIC,42,26,114,8
DEFPUSHBUTTON "OK",IDOK,113,41,50,14,WS_GROUP
END
Expand Down
2 changes: 1 addition & 1 deletion SandSExe/SandSTrayWindow.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "SandSTrayWindow.hpp"

#include "resource.h"
#include "resource.hpp"
#include "Config.hpp"
#include "./Define.hpp"

Expand Down
2 changes: 1 addition & 1 deletion SandSExe/main.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "pch.hpp"

#include "resource.h"
#include "resource.hpp"
#include "LowLevelKeyboardHook.hpp"
#include "SandSTrayWindow.hpp"
#include "./Define.hpp"
Expand Down
22 changes: 0 additions & 22 deletions SandSExe/resource.h

This file was deleted.

45 changes: 45 additions & 0 deletions SandSExe/resource.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
#pragma once

// Application Data
#ifdef DEBUG
#define VER_DEBUG VS_FF_DEBUG
#define VER_PRIVATE VS_FF_PRIVATEBUILD
#else
#define VER_DEBUG 0
#define VER_PRIVATE 0
#endif
#define VER_STR_COMMENTS ""
#define VER_STR_COMPANYNAME ""
#define VER_STR_FILEDESCRIPTION "SandSExe v1.0.0"
#define VER_FILEVERSION 1,0,0,0
#define VER_STR_FILEVERSION "1.0.0"
#define VER_STR_INTERNALNAME "SandSExe"
#define VER_STR_ORIGINALFILENAME "SandSExe.exe"
#define VER_STR_LEGALCOPYRIGHT "(C) 2020 fiore All Rights Reserved"
#define VER_STR_PRODUCTNAME "SandSExe"
#define VER_PRODUCTVERSION 1,0,0,0
#define VER_STR_PRODUCTVERSION "1.0.0"

// Icon
#define IDI_SANDSEXE 107
// Menu
#define IDM_TRAY_R 110
#define IDM_APP_CONFIG 111
#define IDM_APP_ABOUT 112
#define IDM_APP_EXIT 113
// About Dialog
#define IDD_ABOUTBOX 103
#define IDR_MAINFRAME 128
// Config Dialog
#define IDD_CONFIGBOX 114
#define IDC_SLIDER1 1001
#define IDC_STATIC1 1005
#define IDC_RADIO1 1024
#define IDC_RADIO2 1025
#define IDC_RADIO3 1026
#define IDC_RADIO4 1027

#ifndef IDC_STATIC
#define IDC_STATIC -1
#endif

0 comments on commit 5c9dc09

Please sign in to comment.