I was surprised to discover that apparently it is not possible to import C predefined macros inside the resource files (.rc
) because Resource Compiler is not able to deal with them.
I was trying to put the version information inside a version.h
that would be generated / updated by the build system. This file was supposed to be included from the resource.rc
so when you build the resources you will always get the same versions across all the built files.
It seems that this has something to do with RC_INVOKED
and this bug http://connect.microsoft.com/VisualStudio/feedback/details/532929/rc4011-warnings-from-vc10-rc -- which is closed as "as-designed".
How can I solve this problem?
Is the only option to patch the final exe in order to update the version information? ... I would prefer not do to this and use a more standard way for this.