# Delphi Resource file in FB7 breaks rc.exe

**URL:** <https://www.finalbuilder.com/forums/t/delphi-resource-file-in-fb7-breaks-rc-exe/3266>\
**Category:** Bugs\
**Created:** [August 9, 2010, 3:49am UTC](https://www.finalbuilder.com/forums/t/delphi-resource-file-in-fb7-breaks-rc-exe/3266 "2010-08-09T03:49:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anotherlab](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/48db29/32.png) [@anotherlab](https://www.finalbuilder.com/forums/u/anotherlab)\
**Post date:** [August 9, 2010, 3:49am UTC](https://www.finalbuilder.com/forums/t/delphi-resource-file-in-fb7-breaks-rc-exe/3266/1 "2010-08-09T03:49:08Z")

</div>

With our Delphi 2007 projects, we are using the Microsoft resource compiler (rc.exe) instead of brcc32.exe. &nbsp;It's one of the steps that we needed to do to get the Vista style icons compiled into our applications. &nbsp;With FB6, it compiles correctly, in FB7, we get errors. &nbsp;The .rc file generated by FB7 (7.0.0.515) is different than the .rc file generated by FB6.

This is a sample .rc file that FB6 had generated for my app.

```
MAINICON ICON "C:\\source\\myapp.ico"1 VERSIONINFOFILEVERSION 9,16,0,420PRODUCTVERSION 9,16,0,420FILEFLAGSMASK 0x3FLFILEFLAGS 0x00LFILEOS 0x40004LFILETYPE 0x1LFILESUBTYPE 0x0LBEGIN BLOCK "StringFileInfo" BEGIN BLOCK "040904E4" BEGIN VALUE "CompanyName", "My Company\0" VALUE "FileDescription", "My App\0" VALUE "LegalCopyright", "Copyright © 2010.\0" VALUE "FileVersion", "9.16.0.420\0" VALUE "CompileDate", "Monday, August 09, 2010 10:34 AM\0" END END BLOCK "VarFileInfo" BEGIN VALUE "Translation", 0x0409, 1252 ENDEND
```

This is what was generated for the same project with FB7:

```
MAINICON ICON "C:\\source\\myapp.ico"1 VERSIONINFOFILEVERSION 9,16,0,420PRODUCTVERSION FILEFLAGSMASK 0x3FLFILEFLAGS 0x00LFILEOS 0x4LFILETYPE 0x1LFILESUBTYPE 0x0LBEGIN BLOCK "StringFileInfo" BEGIN BLOCK "040904E4" BEGIN VALUE "CompanyName", "My Company\0" VALUE "FileDescription", "My App\0" VALUE "LegalCopyright", "Copyright C 2010.\0" END END BLOCK "VarFileInfo" BEGIN VALUE "Translation", 0x0409, 1252 ENDEND
```

There are a few differences between them. &nbsp;The non-working one is missing the version number for PRODUCTVERSION, the copyright symbol in LegalCopyright was changed from "©" to "C", &nbsp;FILEOS was changed from 0x40004 to 0x4, and FileVersion and CompileDate are missing from StringFileInfo. &nbsp; We end up with the following error when we compile our app with FB7:

```
myapp.rc(5) : error RC2127 : version WORDs separated by commas expectedmyapp.rc(5) : error RC2167 : unrecognized VERSIONINFO field; BEGIN or comma expected
```
