469,610 Members | 1,793 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,610 developers. It's quick & easy.

After editing resources the resource.h changes to resource.

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 ?
Dec 4 '07 #1
3 1171

"Lex" <Le*@discussions.microsoft.comwrote in message
news:6B**********************************@microsof t.com...
>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.
Dec 4 '07 #2


"Ben Voigt [C++ MVP]" wrote:
>
"Lex" <Le*@discussions.microsoft.comwrote in message
news:6B**********************************@microsof t.com...
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.
I found this

1 TEXTINCLUDE
BEGIN
"resource.\0"
END

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

Thanks.
Lex

Dec 5 '07 #3

"Lex" <Le*@discussions.microsoft.comwrote in message
news:93**********************************@microsof t.com...
>

"Ben Voigt [C++ MVP]" wrote:
>>
"Lex" <Le*@discussions.microsoft.comwrote in message
news:6B**********************************@microso ft.com...
>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.
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.
>
Thanks.
Lex

Dec 5 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Anthony Kroes | last post: by
5 posts views Thread by Marcus Ahlberg | last post: by
1 post views Thread by n! | last post: by
reply views Thread by Russell E. Owen | last post: by
reply views Thread by devrayhaan | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.