From d6301fca6b78db52d0d98f8e0799aba175ad2e59 Mon Sep 17 00:00:00 2001 From: Daniel Wilhelm Date: Fri, 18 Apr 2014 17:21:41 +0200 Subject: 5.8 --- RealtimeSync/resource.rc | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) (limited to 'RealtimeSync/resource.rc') diff --git a/RealtimeSync/resource.rc b/RealtimeSync/resource.rc index 8716dabd..ecf568da 100644 --- a/RealtimeSync/resource.rc +++ b/RealtimeSync/resource.rc @@ -3,19 +3,26 @@ #include #include "../version/version.rc" -//beginning with VC11 we get linking error "CVTRES : fatal error CVT1100: duplicate resource. type:MANIFEST, name:1, language:0x0409" -//due to "#define wxMANIFEST_ID 1" in wx.rc. Using another number doesn't integrate the manifest correctly for VC2010 compilers. -//However tests indicate we do not need this manifest at all: -//#define wxUSE_NO_MANIFEST 1 //VC11 screws up if not set to an integer, unbelievable -//we can't #ifdef _MSC_VER: not known by resource compiler! -//see also: http://blog.m-ri.de/index.php/2010/11/26/combobox-dropdown-hoehe-wird-nicht-mehr-durch-die-ressourcen-definiert/ +#define wxUSE_NO_MANIFEST 1 //lame resource compiler requires us to define an integer here #include +//see comments in FFS resource file on manifests + +//MSDN on manifests: http://msdn.microsoft.com/en-us/library/bb756929.aspx +#define MANIFEST_RESOURCE_ID 1 +#if defined(WX_CPU_AMD64) //check for 64 bit *first* +MANIFEST_RESOURCE_ID RT_MANIFEST "../amd64.manifest" +#elif defined(WX_CPU_X86) +MANIFEST_RESOURCE_ID RT_MANIFEST "../win32.manifest" +#else +#error What is going on? +#endif + A_PROGRAM_ICON ICON DISCARDABLE "RealtimeSync.ico" IDR_VERSION1 VERSIONINFO -FILEVERSION VER_FREEFILESYNC -PRODUCTVERSION VER_FREEFILESYNC +FILEVERSION FREEFILESYNC_VER +PRODUCTVERSION FREEFILESYNC_VER FILEOS VOS__WINDOWS32 FILETYPE VFT_APP BEGIN @@ -24,10 +31,10 @@ BEGIN BLOCK "FFFF04B0" BEGIN VALUE "FileDescription", "Real-time Command Line Launcher\0" - VALUE "FileVersion", VER_FREEFILESYNC_STR + VALUE "FileVersion", FREEFILESYNC_VER_STR VALUE "ProductName", "RealtimeSync\0" - VALUE "ProductVersion", VER_FREEFILESYNC_STR - VALUE "LegalCopyright", "ZenJu - All Rights Reserved\0" + VALUE "ProductVersion", FREEFILESYNC_VER_STR + VALUE "LegalCopyright", "Zenju - All Rights Reserved\0" END END BLOCK "VarFileInfo" -- cgit