Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6592433
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T17:33:14+00:00 2026-05-25T17:33:14+00:00

I use my own .rc file to generate custom resource entries including version info.

  • 0

I use my own .rc file to generate custom resource entries including version info.

My library.rc file is :

#include "app.rc.h"
VS_VERSION_INFO VERSIONINFO
FILEVERSION _FileVersion
PRODUCTVERSION _FileVersion
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
FILEFLAGS 0
FILEOS VOS__WINDOWS32
FILETYPE VFT_APP
FILESUBTYPE VFT2_UNKNOWN
BEGIN
  BLOCK "VarFileInfo"
  BEGIN
    VALUE "Translation", 0x0409, 1252
  END
  BLOCK "StringFileInfo"
  BEGIN
    BLOCK "040904E4"
    BEGIN
      VALUE "InternalName",       App_InternalName "\0"
      VALUE "CompanyName",        App_CompanyName "\0"
      VALUE "FileDescription",    App_ProductName "\0"
      VALUE "FileVersion",        _FileVersionStr "\0"
      VALUE "ProductName",        App_ProductName "\0"
      VALUE "ProductEdition",     App_ProductEdition "\0"
      VALUE "LegalCopyright",     "Copyright \251 " App_CompanyName "\0"
      VALUE "CompanyURL",         App_CompanyURL "\0"
      VALUE "ProductURL",         App_ProductURL "\0"
      VALUE "SupportURL",         App_SupportURL "\0"
      VALUE "AppRegistryPath",    App_RegistryPath "\0"
    END
  END
END

I add the .rc file into the package project file via Project | Add to Project. My package.dpk file is something like this so far:

package SQL.Alpha.resource.core;

{$R *.res}
{$R 'library.res'}
{$ALIGN 8}

The package.dproj file has RcCompile entry:

<RcCompile Include="..\..\build\rc\library.rc">
    <Form>library.res</Form>
</RcCompile>

When I compile the package, everything looks good but it has a warning:

[DCC Warning] W1056 Warning: Duplicate resource:  Type 16 (VERSIONINFO), ID 1; File library.res resource kept; file package.res resource discarded.

This is due to the package itself generate it’s own package.res file that include MainIcon and VersionInfo entries. And the VersionInfo has conflict with my own VersionInfo entry.

I then attempt to remove {$R *.res} in the dpk file:

package SQL.Alpha.resource.core;

{$R 'library.res'}
{$ALIGN 8}

Rebuild the project and everything works fine. The warning is gone.

However, there are some side effects removing {$R *.res} manually:

  1. Delphi IDE will add the {$R *.res} again if you attempt to add new unit in package or make and changes in Project | Options…
  2. All RcCompile entries in .dproj file will be removed

I can tolerate with first side effect by removing {$R *.res} again in package.dpk file.

However, the 2nd side effect is out of my control. The missing RcCompile in package.dproj will cause the rc file not to compiled by brcc32 again. Removing the .res files in file system will cause error in compilation due to this.

Does anyone has ideas how to overcome this problem? Thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T17:33:15+00:00Added an answer on May 25, 2026 at 5:33 pm

    In Delphi XE2, you may now remove the built-in version information of Delphi package (*.bpl) via Project | Options. Navigate to “Version Info” package, and uncheck “Include version information in project”.

    By doing this, the built-in version information will not generated in *.res files and thus the compiler warning message will not show. You may use your customized *.rc files as wish.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to use my own function to get the file size from
I'm working on a custom CMS for my own use and was thinking about
Instead of app-id@appspot.com or any@app-id.appspot.com I would like to use any@own-domain.tld. can this be
I'm comparing two examples of WCF. Microsoft's examples http://msdn.microsoft.com/en-us/library/ms734712.aspx uses app.config file, uses generator
Need to use own imaged markers instead built-in pins. I have several questions. 1.
Text gets accumulates piecemeal before being sent to client. Now we use own class
how can I open a modal window using javascript only. I can't use own
I want to use my own existing model in GWT application. From what I've
This is really just for my own use: I would like to be able
I have several blocks of the following code that each use there own matrix.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.