After editing resources the resource.h changes to resource.

L

Lex

I have a standard MFC application, every now and then, probably after editing
resources or classes it changes the #included statement in the .RC file from
resource.h to reasource.
I then have to manually edit .RC file to recover.

I am using VC2005 on Windows vista ultimate. The project was original ported
from VC6

Any idear what could cause this behaviour. Could this be vista releated ?
 
B

Ben Voigt [C++ MVP]

Lex said:
I have a standard MFC application, every now and then, probably after
editing
resources or classes it changes the #included statement in the .RC file
from
resource.h to reasource.
I then have to manually edit .RC file to recover.

I am using VC2005 on Windows vista ultimate. The project was original
ported
from VC6

Any idear what could cause this behaviour. Could this be vista releated ?

Find all instances of the word "include" in the .rc and .rc2, I think the
source of the problem will become obvious.

The resource editor rebuilds the entire .rc file each time it saves.
 
L

Lex

Ben Voigt said:
Find all instances of the word "include" in the .rc and .rc2, I think the
source of the problem will become obvious.

The resource editor rebuilds the entire .rc file each time it saves.
I found this

1 TEXTINCLUDE
BEGIN
"resource.\0"
END

I changed it to resource.h. Hope this solves the problem.

Thanks.
Lex
 
B

Ben Voigt [C++ MVP]

Lex said:
I found this

1 TEXTINCLUDE
BEGIN
"resource.\0"
END

I changed it to resource.h. Hope this solves the problem.

It's been a while since I messed with the resource editor so I didn't
remember the exact syntax, but that is precisely what I was expecting you to
find.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top