473,322 Members | 1,778 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Resource file compile time dependencies

Hi,

I have a resource.rc in my project. The resource.rc includes another.rc file
in "Compile time directives". Unfortunately, when I change the another.rc,
the resources are not compiled, I have to do "Build All". How can I fix
that? The resource.rc is apparently compiled only when it is changed, it
doesn't look for it's dependencies.

Best regards, Jan

PS: I have .NET 2003
Nov 17 '05 #1
4 1508
Hi Jan,
Unfortunately, when I change the another.rc,
the resources are not compiled, I have to do "Build All". How can I fix
that? The resource.rc is apparently compiled only when it is changed, it
doesn't look for it's dependencies.


It appears no such switch to make your included resource file compiled
automatically in the IDE, if you hesitate to Build All, how about to
manually compile it separately?
Thanks!

Best regards,

Gary Chang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------

Nov 17 '05 #2
Thanks Gary,

I was affraid about your answer. The problem is really unpleasant. I have a
message file as part of the project and I include the resulting resources
file into main resource of the project. I have spent some time debugging why
the FormateMessage() doesn't work, when I have all the messages correct in
my message file. It was not simply compiled. I don't think I will want to
make rebuild all.
(the same problem can be seen if you manually edit the resource.h file)
I think I will try to create some workaround - add custom build step that
will remove the compiled main resource file when the files it depends on
will be modified.

Please fix this in new versions,

thanks, Jan
It appears no such switch to make your included resource file compiled
automatically in the IDE, if you hesitate to Build All, how about to
manually compile it separately?

Nov 17 '05 #3
> I think I will try to create some workaround - add custom build step that
will remove the compiled main resource file when the files it depends on
will be modified.


I tried. Strangely enough I add resources.res as output of my mc.exe to
custom build at it works. When I change the message file, the resources are
recompiled too.

Jan
Nov 17 '05 #4
Hi Jan,

We are sorry for the inconvenience this issue has caused you; I will pass
your concern to the product team.

At the same time, I am glad that you have found a workaround in this
scenario and have shard it with the community members. This will greatly
help those developers who are experiencing the same trouble.
Thanks for your understanding!

Best regards,

Gary Chang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------

Nov 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Brian Sabolik | last post by:
I'm not sure if I've broken any Object Oriented rules or not, but ... I have projects in 2 different solutions that need to use each other's methods. Therefore I may have an "update" method in...
11
by: Danny Pressley | last post by:
I have a VS.NET 2003 Visual C++ MFC Application Project in which I added a new resource file, I then added an icon to this new resource file and did a rebuild and got the following error: "fatal...
2
by: David Muoio | last post by:
I am trying to validate an XML file against an XSD that is stored in the assembly as an embedded resource. I can get it to work as long as the XSD does not include other XSDs. After a fair amount...
1
by: Kaworu | last post by:
Hi, at first time I want to apologize for my English. I need to change the language of my app and I like to do it changin the caption of the controls in the resource.rc file, or having on...
2
by: frossberg | last post by:
Hello! I tried to install the Visual Basic.NET Resource Kit (http://msdn.microsoft.com/vbasic/vbrkit/) but obviously something went very wrong and now it sems impossible both to repair and to...
3
by: James | last post by:
Hi guys Do you ever get the exception in Managed C++? How can I know which file or dll is missed?
2
by: John Bailey | last post by:
I have checked around and could not find anything here that exactly matches my issue, which is odd since I have found numerous posts on this in other news groups. I have a ASP .Net 2.0 site that...
8
by: John Dunn | last post by:
Since currently we aren't allowed to have compiled XAML files embedded in C++ apps I'm using Markup::XamlReader::Load to dynamically load XAML files. This works perfectly fine with external files...
13
by: Bob Jones | last post by:
Here is my situation: I have an aspx file stored in a resource file. All of the C# code is written inline via <script runat="server"tags. Let's call this page B. I also have page A that contains...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.