In your code you have included
what is the resource1
.h? Like Albert said, the IDM_FILE_NEW will be defined in resource.h. So if you include that file, I guess your problem will be solved.
If you have already included resource.h, check whether IDM_FILE_NEW is defined in that file or not.