In MFC C++, When we add a new resourcein a EXE, says string, it will generate an ID automatically:
#define ID_SHOW_OUTPUT 10313
When it has a plugin(DLL) which has the similar ID, it will cause undefined behavior after trigerred.
To play safe, I tried to define the my own private ID:
#define ID_SHOW_OUTPUT (WM_APP+6)
However, I will have a lot of work if there are hundreds of resources in the EXE and DLL.
I'm not sure there is a better solution and prevention on duplicated resource ID across executables???