TIP: Click on subject to list as thread! ANSI
echo: delphi
to: ALL
from: MICHAEL JOSEPHSON
date: 1997-06-29 23:57:00
subject: Calling a function in a user defined DLL23:57:2006/29/97

Hello All!
In a Delphi program is possible to pick the DLL to call a function from at
runtime? This is a question that's been bugging me for a while because 
there's a
number of reasons why it would be useful.
Here's an example which /should/ make things clearer:
Say you've got an email program, you could have a function GetEMailHeader 
which
returns header information for a message and you could have DLLs: HUDSON.DLL,
JAM.DLL, NEWMBASE.DLL. If each DLL had a GetEMailHeader function and you 
ould
pick whatever message base format you wanted just by telling the program the 
DLL
to use. Other people could write new message base DLLs later.
This would also be useful for implementing a plugin interface in a program. 
g
each DLL could have a DoMagic function (or whatever) which served as an entry
point into whatever the plugin did. For example you could have a spell 
hecker
which took the message text and returned the corrected text.
Any and allsuggestions welcome, including other ways to achieve the same end
result.
Cheers,
/\/\ike
... If at first you don't succeed, skydiving isn't for you.
--- FMailX 1.02
---------------
* Origin: Michael's Point in Sunny Whitefield (2:250/102.7)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.