After editing resources the resource.h changes to resource.

  • Thread starter Thread starter Lex
  • Start date Start date
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 ?
 
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.
 
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
 
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.
 
Back
Top