472,776 Members | 2,405 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,776 software developers and data experts.

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 1285

"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Anthony Kroes | last post by:
I have a subform on a form and they are not linked. On the main form is a text box where the user types in a number. When that number changes, I have some code to make the corresponding text...
10
by: B Moor | last post by:
Host PC: Win SBS 2003 with 2.6 GHz processor and 1GB RAM SQL Server 2000 sp3 (or latest).MS Office 2k3 I have the access 2k3 front end running on server (this may get changed) and all was well...
5
by: Marcus Ahlberg | last post by:
I've been coding a C# project in "pure code" and I would now want to import it into VS.net. I have created a project and imported all sourcefiles and it's compiling without problems, except for the...
1
by: n! | last post by:
I have an irritating problem with VS.NET2003, C#. I wrote some code that would build my application menu from an XML resource file. Purely to make it easy for me to edit, so I've added this file as...
0
by: Johann Blake | last post by:
I'm having trouble grasping how ASP.NET correctly locates resources. There is plenty of documentation on this subject but some things are not clear at all. In my ASP.NET application, I have...
5
by: Franck | last post by:
Hello, I've just moved to visual developper 2005 to do so, I also had to use the convert assistant. what it did; moving my file resx files that i had in a diresctory called resx to a new...
2
by: Fredrik Rodin | last post by:
All, I'm having problems with my resource manager in ASP.NET 2.0 after conversion from ASP.NET 1.1. Here is a background: In ASP.NET 1.1 All my user controls and aspx pages inherit from...
0
by: Russell E. Owen | last post by:
I was using an older version of py2app to distribute an application. This placed the python library code in TUI.app/Contents/Resources/Python I just upgraded to py2app 0.3.5 and now I find the...
0
by: Mini12321 | last post by:
ok, so ive built a simple console interpretor in C#. Now it works all how I want it to, but here what the users gets after IDE encrypts files: =<app dir> ==users_app.exe ==app_code.txt ...
0
by: Rina0 | last post by:
Cybersecurity engineering is a specialized field that focuses on the design, development, and implementation of systems, processes, and technologies that protect against cyber threats and...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.