lingjieyu
lingjieyu

Reputation: 21

How to nest diffierent resource files in MFC?

I am combining two projects and I get stuck when I try to nest the resource files. I use resource include command and include the affiliated rc file in the main rc file. Add the
" #include affiliated.rc" in the compile-time directives field. But it doesn't work. Fatal error CVT1100: comes up. Can sombody help me.

Upvotes: 0

Views: 558

Answers (1)

Kirill Kobelev
Kirill Kobelev

Reputation: 10557

Resource files cannot be nested. You can attach multiple resources to a binary. All these resources should have different IDs (names or numbers). Resource is picked by this ID. They do not form any sort of directory structure.

You need to add multiple resource files to your project and ensure that all individual resources have different ids, i.e. rename some of them. http://msdn.microsoft.com/en-us/library/3k67zd6z(v=vs.71).aspx. This error directly states this.

Upvotes: 1

Related Questions