PDA

View Full Version : C++ Builder Version Info


jeffbane
04-18-2011, 10:47 AM
I am building C++ Builder projects (version 2007) that were once working. I have discovered that the version information is not being updated properly.

In the build log there is a red line "Failed to create process..." See partial log below:


4/18/2011 10:34:04 AM: Building subroutine step 10 - Set File Info and Build...
setting version...compiling VERSIONINFO RC file...
Failed to create process: The system cannot find the file specified.
building...

Setting environment for using CodeGear RAD Studio tools
Microsoft (R) Build Engine Version 2.0.50727.4927
[Microsoft .NET Framework, Version 2.0.50727.4959]
Copyright (C) Microsoft Corporation 2005. All rights reserved.

Everything works except that the version info is not updated correctly. The cbproj file is updated, the vrc file is updated, but the res file is not.

Only things I know have changed are that VBP has been updated over time and that I also have C++ Builder 2010 installed, although I have overridden the exact location of the msbuild and framework and used the rsvars override with no luck.

Any help would be appreciated.

kinook
04-18-2011, 10:55 AM
http://www.kinook.com/Forum/showthread.php?threadid=3044

jeffbane
04-25-2011, 12:10 PM
I decided to trace this with a simple project but instead of submitting an official bug report I circumvented the problem.

The C++ Builder step is calling brcc32.exe to compile the resource with the version information as expected. However it is only looking in C:\Windows\System32 instead of using the path or some other directory information.

I proved this by running the command line at a prompt, which built the version info correctly. I then copied brcc32.exe to the system32 directory and the visual build process then worked correctly.

I'm not sure how VBP looks for brcc32 to run, but in this case it expects it in the windows system directory?

For the moment my problem is solved, but the mystery continues...