1. Home
  2. Computing & Technology
  3. Delphi Programming
Zarko Gajic
Zarko's Delphi Programming Blog

By Zarko Gajic, Delphi Programming Guide

Use DLL from Resources (RES) Without Storing It On The File System First

Tuesday January 19, 2010

in Resources and DLLs ::

The article how to store a DLL inside a Delphi program exe file as a resource explains how to ship a DLL with your Delphi application executable file as a resource.

Recently, I've received an email from Mark E. Moss, asking if a DLL stored in a RES can be used without first saving it on the file system (hard disk)? My initial answer was "to use a DLL stored inside a Delphi application executable file, the DLL first needs to be stored on the file system". I was wrong :)

Read the full article to learn how to Load a DLL From a Resource Directly From Memory in Delphi Applications.

NOTE: Soon after publishing this article I've received an email from Jason Penny:
The linked BTMemoryModule.pas does not work with Delphi 2009 (and I would assume Delphi 2010 also).
I found a similar version of the BTMemoryModule.pas file a while ago, and made changes so it works with (at least) Delphi 2006, 2007 and 2009. My updated BTMemoryModule.pas, and a sample project, are at BTMemoryLoadLibary for Delphi >= 2009"

Related:

Comments
January 19, 2010 at 11:58 am
(1) Michael Rockett says:

This is quite interesting – certainly will give it a go.

Thanks for the post Zarko. :)

January 20, 2010 at 9:58 pm
(2) dEE says:

You’re great, ma men…

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

Explore Delphi Programming
About.com Special Features

You don't have to break the bank on a new computer. Find out how to save on your next PC. More

This simple questionnaire will show you which Web design software tool is right for you. More

  1. Home
  2. Computing & Technology
  3. Delphi Programming

©2010 About.com, a part of The New York Times Company.

All rights reserved.