Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Load resources from DLLs

Posted on 1997-07-15
5
Medium Priority
?
153 Views
Last Modified: 2011-10-03
I want to know how to load a ressource from a DLL created with Delphi 3.
For example, with the TAnimate control I want to load a .AVI from my DLL.
0
Comment
Question by:fmichaud061597
[X]
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
  • 2
5 Comments
 

Expert Comment

by:chrb
ID: 1338940
Hi!

To load resources you must use the LoadLibrary function to create a handle to the dll. And then read the AVI file.

If you didn't understand just leave me a comment.

Chr
0
 

Author Comment

by:fmichaud061597
ID: 1338941
I understand, but what i need is the source code to load that resources in my TAnimate. like:
Animate1.ResID := 101; <--- this is from resources in .exe so when i got my handle to my DLL what I must do?
0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1338942
Can't you get it with LoadResource?

c.u.
ZifNab

0
 

Author Comment

by:fmichaud061597
ID: 1338943
It seems to work but it takes the resource from it's own executable.
0
 
LVL 8

Accepted Solution

by:
ZifNab earned 40 total points
ID: 1338944
Try this (haven't tested it! Just a guess!) :

 DllHandle := LoadLibrary({name.dll});

And use this DllHandle with

 AviHandle := LoadResource(DllHandle, {....});

Have fun,
c.u.
ZifNab;
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
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…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

721 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