From 6914baf5b2f0c9eaef036a0aaa347460652b96ea Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Tue, 9 Feb 2016 08:48:06 +0100 Subject: [PATCH] Version resource added --- build/wxExtend.vcxproj | 3 +++ build/wxExtend.vcxproj.filters | 13 ++++++++++--- include/wxex/common.h | 28 +++++++++++++++++++++++++++- res/wxExtend.rc | Bin 0 -> 3338 bytes 4 files changed, 40 insertions(+), 4 deletions(-) create mode 100644 res/wxExtend.rc diff --git a/build/wxExtend.vcxproj b/build/wxExtend.vcxproj index 52df22a..2eb105e 100644 --- a/build/wxExtend.vcxproj +++ b/build/wxExtend.vcxproj @@ -40,6 +40,9 @@ + + + {A3A36689-AC35-4026-93DA-A3BA0C0E767C} wxExtend diff --git a/build/wxExtend.vcxproj.filters b/build/wxExtend.vcxproj.filters index 0383df5..150b51d 100644 --- a/build/wxExtend.vcxproj.filters +++ b/build/wxExtend.vcxproj.filters @@ -44,11 +44,18 @@ - - Resource Files\Localization - Resource Files\Localization + + + Resource Files\Localization + + + + + Resource Files + + \ No newline at end of file diff --git a/include/wxex/common.h b/include/wxex/common.h index 275460e..1ce0636 100644 --- a/include/wxex/common.h +++ b/include/wxex/common.h @@ -17,13 +17,33 @@ along with wxExtend. If not, see . */ -#pragma once +#if !defined(__wxEXTEND_common_h__) +#define __wxEXTEND_common_h__ + +/// +/// wxExtend Version +/// +#define wxEXTEND_VERSION 0x01000000 + +#define wxEXTEND_VERSION_MAJ 1 +#define wxEXTEND_VERSION_MIN 0 +#define wxEXTEND_VERSION_REV 0 +#define wxEXTEND_VERSION_BUILD 0 + +#define wxEXTEND_VERSION_STR "1.0" +#define wxEXTEND_BUILD_YEAR_STR "2016" + + +#if !defined(RC_INVOKED) && !defined(MIDL_PASS) #include #include #include +/// +/// Public function calling convention +/// #ifdef WXEXTEND #define ZRCOLA_API __declspec(dllexport) #else @@ -31,6 +51,9 @@ #endif +/// +/// Debug macros +/// #if wxDEBUG_LEVEL #define wxVERIFY(x) wxASSERT((x)) #else @@ -79,3 +102,6 @@ inline bool wxModifyStyleEx(_In_ WXHWND hWnd, _In_ DWORD dwRemove, _In_ DWORD dw return true; } + +#endif // !defined(RC_INVOKED) && !defined(MIDL_PASS) +#endif // !defined(__wxEXTEND_common_h__) diff --git a/res/wxExtend.rc b/res/wxExtend.rc new file mode 100644 index 0000000000000000000000000000000000000000..7b40ff53cd90adcfcb4302935b8f63ecbf07495e GIT binary patch literal 3338 zcmds(Z%-3J5XR@ViQnNYZy-@Dh%Zcx3D7?xwI#i_XkyY7`iDkrNm~RHzmQ*2{XKhK z?v7po2``A*w0FBZvorHNGqd;S_lgZ|WXE=D=hn5J1(vgQ#ur9Bq6D@Uq0I5y$h@e8UxTA66XnM zu3D3oq0NY=%RJ<*<7QJ^V;&(g2K@;v2%RK~eI%YaUiuCdov~`$Re~I_t+KykBb}%0$q$}vB z&j?&?72&nvI4NXU`3M^yz+P2&o1`q?MN&D`x|8G%jLP$Z!^B5(01h?Qnq*+(KZ(gR zRC3u}hG!uk+P>pg{FfN2wjveKq*hdK;y&IJF3ORj<67FPr$wo4P}`-Vikz0UUkCFR z)|C}81B;TO9U!rb^fne_NoAh;aev+mf|TD`c^OBYjwp^cI0Y6hs0C`of>bUy|T?r&4zt;2uQo+^rBvvWhLrdu}0Fv9Z)Pg zi%CuOxfHB%v8?h@LM0%S&wyf@f?zx9TCUWt#r9{12p`5kS~XNj-b-gv|cXivHGgyb2BM*Y@%r5<<4S{ICa?CNH{bob^6tw>h)(-6-m zcrYQdY{YK%BHisH>$msUkPNG*^3YrH&ol!SVi@4%spH}dUlsL$FNE0@4`M036WA}} z-Xs?`>@{*?>xFwRdKg!Hn@T9cYMt8oS3hfWzm(hZ)^nv