I agree. Having multiple rc files in the same project is not impossible. From the VS6.0 generation I've used multiple rc files in my C++ project.
multiple rc files in the same project
Why does everyone say, that it is impossible to have multiple rc files in a C++ project? It compiles without problems and all the resources are in the final output. The only thing you shouldn't do is creating id collisions. So... is this rule still valid or just something that didn't work in the early days?
For those who want to ask the "why do you want to do that??" question: I have multiple reasons. 1) reuse standard resources and 2) use resources that are generated at compile time by a custom tool without using the rc2 files because generating those 'includes' in the rc file (TEXTINCLUDE 3) is too difficult and could get lost when a user modifies the includes.
Developer technologies C++
2 answers
Sort by: Most helpful
-
-
YujianYao-MSFT 4,296 Reputation points Microsoft External Staff
2022-04-05T08:04:00.147+00:00 Hi @Rudolf Meier ,
I suggest you to read this documentation and issue, regarding resource IDs, you should avoid conflicts, because specific resources are called by ID.
Best regards,
Elya
If the answer is the right solution, please click "Accept Answer" and upvote it.If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.