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 4619576
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T02:26:35+00:00 2026-05-22T02:26:35+00:00

How can I make a single executable package that contains DLL and Image Resource

  • 0

How can I make a single executable package that contains DLL and Image Resource Files?

Then how do I extract them from my Executable at Runtime?

  • 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-22T02:26:35+00:00Added an answer on May 22, 2026 at 2:26 am

    Option 1 using the IDE (Delphi 2007 or Higher):

    You can click the Project menu, then select Resources…, which you can load any file into. For your purpose this would be RC_DATA.

    Option 2 without the IDE

    If you do not have the above option, you will need to use the BRCC32 (Borland Resource Compiler) to create a .RES file from RC file, which you then link to your Application. To link Resource files without using the IDE, try the following:

    Lets say for example we want to add a a couple of DLL files, and the name of the DLL files are MyLib1.dll and MyLib2.dll, to add this open Notepad, and type the following:

    MYLIB1 RCDATA “..\MyLib1.dll”

    MYLIB2 RCDATA “..\MyLib2.dll”

    Make sure the ..\xxx.dll paths are correct, so obviously you need to edit that.

    Now you need to save this as a .rc file, so File>Save As..(make sure the dropdown filter is All Files .) and name it MyResources.rc. Now you need to use the Resource Compiler to generate the Res file, using this console command:

    BRCC32 MyResources.RC

    You can write that command by using the Command Prompt, Start Menu > Run > cmd.exe, alternatively you can find the BRCC32.exe inside the bin folder of your Delphi setup and drag the MyResource.RC file onto.

    This will create a Res file named MyResources.RES which you can include inside the Main Delphi form of your Application, like so:

    {$R *.dfm}
    {$R MyResources.res} 
    

    you can extract the resources by using something like this:

    procedure ExtractResource(ResName: String; Filename: String);
    var
      ResStream: TResourceStream;
    begin
      ResStream:= TResourceStream.Create(HInstance, ResName, RT_RCDATA);
      try
        ResStream.Position:= 0;
        ResStream.SaveToFile(Filename);
      finally
        ResStream.Free;
      end;
    end;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can I make a single maven project that can be included as a dependency
How to make single executable file ( not installation file) that run on every
I can make a single row IKImageBrowserView by setting the [imageBrowser setContentResizingMask:NSViewWidthSizable]; but in
A single Rails command can make lots of changes in an app - creating
How can make a link within a facebox window that redirects it to another
In C# you can make a block inside of a method that is not
so that you can make your program concurrent easily in the future.
I make a lot of simple single executable applications for various things at home
I'm new to kernel programming and was thinking on how one can make single
I want to package my project in a single executable JAR for distribution. How

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.