diff --git a/Source/Clock/Win32/Win32.Clock.vcxproj b/Source/Clock/Win32/Win32.Clock.vcxproj
index 9df8bfb2..d481f1af 100644
--- a/Source/Clock/Win32/Win32.Clock.vcxproj
+++ b/Source/Clock/Win32/Win32.Clock.vcxproj
@@ -187,6 +187,7 @@
+
diff --git a/Source/Clock/main.c b/Source/Clock/main.c
index f089b8c2..264a6562 100644
--- a/Source/Clock/main.c
+++ b/Source/Clock/main.c
@@ -483,7 +483,7 @@ BOOL CheckTCDLL(void) //------------------------------------------------------
}
//================================================================================================
//----------------------------//--------+++--> Verify the Correct Version of tClock.dll is Present:
-BOOL CheckDLL(char* fname) //-----------------------------{ 2.0.2.99 }--------------------+++-->
+BOOL CheckDLL(char* fname) //-------------------------------------------------------------+++-->
{
DWORD size;
char szVersion[32] = {0};
@@ -496,10 +496,10 @@ BOOL CheckDLL(char* fname) //-----------------------------{ 2.0.2.99 }--------
VS_FIXEDFILEINFO* pffi;
UINT uLen;
if(VerQueryValue(pBlock, "\\\0", (LPVOID*)&pffi, &uLen)) {
- if(HIWORD(pffi->dwFileVersionMS) == 2 &&
- LOWORD(pffi->dwFileVersionMS) == 0 &&
- HIWORD(pffi->dwFileVersionLS) == 2 &&
- LOWORD(pffi->dwFileVersionLS) == 99) {
+ if(HIWORD(pffi->dwFileVersionMS) == VER_MAJOR &&
+ LOWORD(pffi->dwFileVersionMS) == VER_MINOR &&
+ HIWORD(pffi->dwFileVersionLS) == VER_BUILD &&
+ LOWORD(pffi->dwFileVersionLS) == VER_REVISION) {
br = TRUE; //--+++--> Correct tClock.dll File Version Found!
} else {
wsprintf(szVersion, "Version: %d.%d.%d.%d",
diff --git a/Source/Clock/pageabout.c b/Source/Clock/pageabout.c
index 24f6411a..6bf8983a 100644
--- a/Source/Clock/pageabout.c
+++ b/Source/Clock/pageabout.c
@@ -100,7 +100,7 @@ void OnLinkClicked(HWND hDlg, UINT id)
if(id==IDC_ABT_MAILuri) {
strcpy(str, "mailto:");
GetDlgItemText(hDlg, id, str+strlen(str), 64);
- strcat(str, "?subject=About "); strcat(str, CONF_START);
+ strcat(str, "?subject=About "); strcat(str, ABT_TITLE);
}else
GetDlgItemText(hDlg, id, str, 64);
ShellExecute(hDlg, NULL, str, NULL, "", SW_SHOWNORMAL);
diff --git a/Source/Clock/tclock.h b/Source/Clock/tclock.h
index 1efec0d7..9c838ab8 100644
--- a/Source/Clock/tclock.h
+++ b/Source/Clock/tclock.h
@@ -23,7 +23,7 @@
#else
# define TCLOCK_SUFFIX ""
#endif
-#define ABT_TITLE "T-Clock Redux" TCLOCK_SUFFIX " - 2.0.2 build 99"
+#define ABT_TITLE "T-Clock Redux" TCLOCK_SUFFIX " - " VER_SHORT2 " build " STR(VER_REVISION)
#define ABT_TCLOCK "T-Clock 2010 is Stoic Joker's rewrite of their code which allows it to run on Windows XP and up. While he removed some of T-Clock's previous functionality. He felt this makes it a more \"Administrator Friendly\" application as it no longer required elevated privileges to run.\n\nT-Clock Redux continues what Stoic Joker's T-Clock 2010 started and will be further improved and kept up-to-date."
#define CONF_START "T-Clock Redux" TCLOCK_SUFFIX
#define CONF_START_OLD "Stoic Joker's T-Clock 2010" TCLOCK_SUFFIX
@@ -36,6 +36,7 @@
#include //PathFileExists
#include //EmptyWorkingSet
#include "resource.h"
+#include "../common/version.h"
#ifndef GWL_WNDPROC
#define GWL_WNDPROC GWLP_WNDPROC
diff --git a/Source/Clock/version.rc b/Source/Clock/version.rc
index 8333dfc2..26ce2d98 100644
--- a/Source/Clock/version.rc
+++ b/Source/Clock/version.rc
@@ -1,6 +1,7 @@
// Microsoft Visual C++ generated resource script.
//
#include "resource.h"
+#include "../common/version.h"
#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
@@ -30,8 +31,8 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
//
VS_VERSION_INFO VERSIONINFO
- FILEVERSION 2,0,2,99
- PRODUCTVERSION 2,0,2,99
+ FILEVERSION VER_RC
+ PRODUCTVERSION VER_RC
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
@@ -49,11 +50,11 @@ BEGIN
VALUE "Comments", "SystemTray Clock Utility"
VALUE "CompanyName", "-"
VALUE "FileDescription", "T-Clock Redux"
- VALUE "FileVersion", "2.0.2 #99"
+ VALUE "FileVersion", VER_SHORT " #" STR(VER_REVISION)
VALUE "InternalName", "Clock.exe"
VALUE "OriginalFilename", "Clock.exe"
VALUE "ProductName", "T-Clock Redux"
- VALUE "ProductVersion", "2.0.2 #99"
+ VALUE "ProductVersion", VER_SHORT " #" STR(VER_REVISION)
END
END
BLOCK "VarFileInfo"
diff --git a/Source/DLL/Win32/Win32.DLL.vcxproj b/Source/DLL/Win32/Win32.DLL.vcxproj
index f77e472d..92bdff63 100644
--- a/Source/DLL/Win32/Win32.DLL.vcxproj
+++ b/Source/DLL/Win32/Win32.DLL.vcxproj
@@ -174,7 +174,8 @@
-
+
+
diff --git a/Source/DLL/version.rc b/Source/DLL/version.rc
index dc617792..8a738505 100644
--- a/Source/DLL/version.rc
+++ b/Source/DLL/version.rc
@@ -1,5 +1,6 @@
// Microsoft Visual C++ generated resource script.
//
+#include "../common/version.h"
#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
@@ -28,8 +29,8 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
//
VS_VERSION_INFO VERSIONINFO
- FILEVERSION 2,0,2,99
- PRODUCTVERSION 2,0,2,99
+ FILEVERSION VER_RC
+ PRODUCTVERSION VER_RC
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
@@ -44,14 +45,14 @@ BEGIN
BEGIN
BLOCK "000004b0"
BEGIN
- VALUE "Comments", "Used by T-Clock to ""Hook"" into the tray clock"
+ VALUE "Comments", "T-Clock tray-""Hook"""
VALUE "CompanyName", "-"
VALUE "FileDescription", "T-Clock Redux DLL"
- VALUE "FileVersion", "2.0.2 #99"
+ VALUE "FileVersion", VER_SHORT " #" STR(VER_REVISION)
VALUE "InternalName", "Clock.dll"
VALUE "OriginalFilename", "Clock.dll"
VALUE "ProductName", "T-Clock Redux"
- VALUE "ProductVersion", "2.0.2 #99"
+ VALUE "ProductVersion", VER_SHORT "#" STR(VER_REVISION)
END
END
BLOCK "VarFileInfo"
diff --git a/Source/T-Clock.cbp b/Source/T-Clock.cbp
index e1d79895..b87fecea 100644
--- a/Source/T-Clock.cbp
+++ b/Source/T-Clock.cbp
@@ -274,10 +274,6 @@
-
-
-
-
@@ -292,6 +288,7 @@
+
diff --git a/Source/T-Clock64.cbp b/Source/T-Clock64.cbp
index dcd17475..04a9afb8 100644
--- a/Source/T-Clock64.cbp
+++ b/Source/T-Clock64.cbp
@@ -281,10 +281,6 @@
-
-
-
-
@@ -306,6 +302,7 @@
+
diff --git a/Source/common/version.h b/Source/common/version.h
new file mode 100644
index 00000000..9281ab2d
--- /dev/null
+++ b/Source/common/version.h
@@ -0,0 +1,39 @@
+/* Note: to use integer defines as strings, use for example STR(VER_REVISION) */
+#pragma once
+#ifndef AUTOVERSION_H
+#define AUTOVERSION_H
+# define XSTR(x) #x
+# define STR(x) XSTR(x)
+/** Version **/
+ #define VER_MAJOR 2
+ #define VER_MINOR 1
+ #define VER_BUILD 0
+ #define VER_STATUS 2
+ #define VER_STATUS_S "Release Candidate"
+ #define VER_STATUS_SS "rc"
+ #define VER_STATUS_SS2 "гc"
+ #define VER_REVISION 57
+ #define VER_FULL "2.1.0 Release Candidate"
+ #define VER_SHORT "2.1rc0"
+ #define VER_SHORT2 "2.1.0"
+ #define VER_SHORT3 "2.1гc0"
+ #define VER_RC 2, 1, 0, 57
+/** Date/Time **/
+ #define VER_TIMESTAMP 1403117331
+ #define VER_DATE_SEC 51
+ #define VER_DATE_MIN 48
+ #define VER_DATE_HOUR 18
+ #define VER_DATE_DAY 18
+ #define VER_DATE_MONTH 06
+ #define VER_DATE_YEAR 2014
+ #define VER_DATE_WDAY 0
+ #define VER_DATE_YDAY 169
+ #define VER_DATE_WDAY_SS "Wed"
+ #define VER_DATE_WDAY_S "Wednesday"
+ #define VER_DATE_MONTH_SS "Jun"
+ #define VER_DATE_MONTH_S "June"
+ #define VER_DATE "Wed, June 18, 2014 18:48:51 UTC"
+ #define VER_DATES "2013-05-26 18:48:51 UTC"
+ #define VER_DATE_TIME "18:48:51"
+ #define VER_DATE_DATE "2014-06-18"
+#endif