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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T18:28:58+00:00 2026-05-16T18:28:58+00:00

I want to distribute only a single .exe, however, at runtime I would like

  • 0

I want to distribute only a single .exe, however, at runtime I would like it to extract some embedded image resources to the users hard disk drive.

Can I, and if so, how?

  • 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-16T18:28:59+00:00Added an answer on May 16, 2026 at 6:28 pm

    Use Delphi’s TResourceStream. It’s constructor will find and load the resource into memory, and it’s SaveToFile method will do the disk write.

    Something similar to this should work:

    var
      ResStream: TResourceStream;
    begin
      ResStream := TResourceStream.Create(HInstance, 'YOURRESOURCENAME', RT_RCDATA);
      try
        ResStream.Position := 0;
        ResStream.SaveToFile('C:\YourDir\YourFileName.jpg');
      finally
        ResStream.Free;
      end;
    end;
    

    If you can use the resource ID instead of name, it’s a little less memory. In that case, you’d resplace Create with CreateFromID, and supply the numeric ID rather than the string name.

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

Sidebar

Related Questions

How to, Sequentially distribute data from a list to arrays (or some other structure)
I am using several P/Invokes under .NET. However, I want my library to work
My Perl script to monitor a directory on Unix, stores a list of users
I'd want to hear various opinions how to safely use c++ in mission critical
Having two lists, I want to get all the possible couples. (a couple can
I suspect that I will soon exhaust the speed improving possibilities of threading on
I am writing a system for automatically recalculating the results of costly methods, and
I've learned that you should usually stick with either forking or threading to avoid
From what I can see Gearman does not support scheduled jobs or delayed jobs.

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.