Resource file compile time dependencies

  • Thread starter Thread starter Jan Bares
  • Start date Start date
J

Jan Bares

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
 
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.
--------------------
 
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
 
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
 
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.
--------------------
 
Back
Top