[Webinar] Streamline your web hosting managementRegister Today

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 287
  • Last Modified:

Retrieve binary resources from dll


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...
  • 2
1 Solution
Mohammed NasmanSoftware DeveloperCommented:
Creating a Resource only DLL - by Borland Developer Support Staff
Mohammed NasmanSoftware DeveloperCommented:
Wim ten BrinkSelf-employed developerCommented:
Use the same TResourceStream, only use the handle of the DLL instead of the HInstance of your application...
LiveBootlegAuthor Commented:
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

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now