Error RC2104: undefined keyword or key name solution after VS project upgrade
question:
After the project created by VS is opened and upgraded with a new version, the resource view cannot be opened, and an error message appears error RC2104: undefined keyword or key name WS_EX_NOINHERILAYOUT
reason:
If you upgrade the VS project and find that *.rc
after editing, there is a compilation error, error RC2104: undefined keyword or key name, basically because during the upgrade, the *.rc
one in the middle was #include <windows.h>
removed and a resouce.h was added.
Solution:
Just add it to the lieutenant *.rc
.#include <windows.h>
concluding remarks
have a pleasant workday!