I made an application, and i have to create two separete builds for it. One for 32bit and one for 64bit. In the property of the file, i'd like to include some descriptions, like the original filename, where i'd like to set the architecture(x64 or x86). As it seems it is harder than i thought, or i am doing something wrong.
#ifdef _WIN64
#define ARCHIT "1"
#else
#define ARCHIT "2"
#endif
This macro always returns 2. Am i doing something wrong? If i insert some #pragma message
before the define
i see, that is evaluating correctly, but somehow the text written in the file property will always be 2.
Could someone help me?
Thanks!
Update:
This is how i use it:
#define VER_FILEVERSION 1,0,0,0
#define VER_FILEVERSION_STR "1.0.0.0\0"
#define VER_PRODUCTVERSION 1,0,0,0
#define VER_PRODUCTVERSION_STR "1.0.0.0\0"
1 VERSIONINFO
FILEVERSION VER_FILEVERSION
PRODUCTVERSION VER_PRODUCTVERSION
FILEFLAGSMASK 0x17L
#ifdef _DEBUG
FILEFLAGS 0x1L
#else
FILEFLAGS 0x0L
#endif
FILEOS 0x4L
FILETYPE 0x1L
FILESUBTYPE 0x0L
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904b0"
BEGIN
VALUE "FileDescription", "My Description"
VALUE "FileVersion", VER_FILEVERSION_STR
VALUE "InternalName", BASENAME
VALUE "LegalCopyright", "My company"
VALUE "OriginalFilename", ARCHIT
VALUE "ProductName", BASENAME
VALUE "ProductVersion", VER_PRODUCTVERSION_STR
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 1200
END
END