Run rc.exe to compile the .rc script into .res. Pass this to the linker so that it is embedded in the final image.
There are many reasons for not just letting the IDE take care of this. He does many other things automatically. How to get the proper manifest inline. And creating a debug assembly that helps you diagnose uninitialized variables and stack corruption. And support for edit + continue. But yes, you can do this too if you know all the command line switches. The best way to find them is to collect some sample projects using the IDE and look at the build log files to see what is used.
Hans passant
source share