Yes! You can use a conditional #ifdef ... #else ... #endif block in your .rc file, so you'll probably have to manually edit it, or put your VERSIONINFO block into an .rc2 file that's included by the main .rc.
像这样:
VS_VERSION_INFO VERSIONINFO
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
FILEFLAGS 0
FILEOS VOS__WINDOWS32
FILETYPE VFT_APP
FILESUBTYPE 0
{
BLOCK "StringFileInfo"
{
BLOCK "080904b0"
{
//...
#ifdef _WIN64
VALUE "FileDescription", "My Application: 64-bit\0"
#else
VALUE "FileDescription", "My Application: 32-bit\0"
#endif
}
}
}
But note, the resource compiler doesn't automatically define the _WIN64 macro, so you'll need to add it (or something similar) as a platform-specific property:
Yes! You can use a conditional
#ifdef ... #else ... #endif
block in your.rc
file, so you'll probably have to manually edit it, or put yourVERSIONINFO
block into an.rc2
file that's included by the main.rc
.像这样:
But note, the resource compiler doesn't automatically define the
_WIN64
macro, so you'll need to add it (or something similar) as a platform-specific property: