Solved

Retrieve binary resources from dll

Posted on 2004-11-01
284 Views
Last Modified: 2010-04-05
Hi,

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...
0
Question by:LiveBootleg
    4 Comments
     
    LVL 22

    Expert Comment

    by:mnasman
    Creating a Resource only DLL - by Borland Developer Support Staff
    http://community.borland.com/article/0,1410,16595,00.html
    0
     
    LVL 22

    Expert Comment

    by:mnasman
    0
     
    LVL 17

    Accepted Solution

    by:
    Use the same TResourceStream, only use the handle of the DLL instead of the HInstance of your application...
    0
     
    LVL 1

    Author Comment

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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone. Privacy Policy Terms of Use

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
    In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
    Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    875 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

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now