Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


Retrieve binary resources from dll

Posted on 2004-11-01
Medium Priority
Last Modified: 2010-04-05

I am deploying an application that includes several multimedia files (mp3, avi etc...) I don't want to distribute these files seperately, they must only be available to the application.

I have created a resource file that includes these files as binary (RCDATA). If I include the resource file in my project, these resource are available at run-time using TResourceStream.

I went one step further in creating a seperate resource only dll which includes all these resources. When the app initiates, I load the dll and now I want to extract these different files from the dll as I need them, but I am not sure how this is done.

Any help would be great...
Question by:LiveBootleg
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 22

Expert Comment

by:Mohammed Nasman
ID: 12461759
Creating a Resource only DLL - by Borland Developer Support Staff
LVL 22

Expert Comment

by:Mohammed Nasman
ID: 12461768
LVL 17

Accepted Solution

Wim ten Brink earned 500 total points
ID: 12463340
Use the same TResourceStream, only use the handle of the DLL instead of the HInstance of your application...

Author Comment

ID: 12465622
So simple actually. The answer was in the delphi help file. Sometimes I'd rather search in Google than look in the help file !!!

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question