CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2009
    Posts
    3

    RC file dependencies

    Hey guys,

    I am using a RC file to embed a binary file in the final .exe program. This binary file is produced in the build process of the project. The problem is that, when this binary file is rebuilt (so it has changed), the RC compiler is not triggered to rebuild the RES file. The RC file should depend on this binary file somehow.

    Someone knows a fix or workaround for this problem?

    Thanks!
    Jorge

  2. #2
    Join Date
    Feb 2009
    Location
    India
    Posts
    444

    Re: RC file dependencies

    Is the RC file part of the project file?
    If it is a rebuild will always trigger to build the RES file.
    «_Superman
    I love work. It gives me something to do between weekends.

    Microsoft MVP (Visual C++)

  3. #3
    Join Date
    Aug 2009
    Posts
    3

    Re: RC file dependencies

    The RC is part of the project, but the binary file not (as this binary file is produced during the build process).

    The exact scenario is this:

    - I have a GPU shader source, for example, main.fx
    - Then I change this source and compile the project
    - As main.fx has changed, the FXC compiler is triggered, and it produces a new main.fxo file (the compiled binary I want to include in the .exe file)
    - At this point, as main.fxo is included in the RC file, the RC compiler should be triggered to update the RES file. But it *does not*.
    - The objects are linked and the final exe is produced, using the old RES file.

    I have no clue of how to solve this issue... maybe it is a bug

  4. #4
    Join Date
    Apr 1999
    Posts
    3,585

    Re: RC file dependencies

    Have you tried adding a post build event to your project?
    Gort...Klaatu, Barada Nikto!

  5. #5
    Join Date
    Aug 2009
    Posts
    3

    Re: RC file dependencies

    I fixed it using a custom build tool, and setting the dependencies manually. Not the way I would like it to do, as it is more a workaround than a solution...

    Using a post build event would be a workaround as well, but thanks for the reply!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured