Solved

Load resources from DLLs

Posted on 1997-07-15
5
151 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 20 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

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…
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…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses
Course of the Month4 days, 5 hours left to enroll

630 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