At a guess, you are #including your .rc file in your C++ file(s) - you can't do that, as the C++ compiler will not understand the file's contents.
You need to write a resource.h file that contains the defines for your resources and include that in the .rc file and in the C++ files. Nothing should be including the .rc file, which needs to be processed by the resource compiler, not the C++ compiler. You also need to #include things like windows.h in the .rc file.
This has nothing particularly to do with C::B, by the way.