Article View: comp.lang.pascal.delphi.misc
Article #173Re: How to use an API contained within a .dll ?
From: Cozimworsit
Date: Thu, 14 Jun 2001 14:41
Date: Thu, 14 Jun 2001 14:41
17 lines
1847 bytes
1847 bytes
"Bert Kortenbach" <bkortenbach.aut@rbk.NoSpam.nl> a οΏ½crit dans le message news: 992519189.11551.0.pluto.d4ee8199@news.demon.nl... > Hello, > > I would dynamically load the DLL with loadlibrary. If the DLL is found > (handle <>0) I would try to get the adress of the functions contained within > the DLL by calling GetProcAddress. If GetProcAddress returns a valid adress, > I call the function and get the results I want... > > Is that what you mean ? > Yes, could you give me an example (loadlibrary, getprocadress and using the procedures contained in the dll) ?
Technical Details
Message-ID:
<9gajsu$5d3$1@reader1.fr.uu.net>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!grolier!isdnet!inetway!inetway.net!not-for-mailReferences:
<9g8049$stg$1@reader1.fr.uu.net> <992519189.11551.0.pluto.d4ee8199@news.demon.nl>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: fb362,f91095d43ffd9f8e X-Google-Attributes: gidfb362,public X-Google-Thread: fd817,f91095d43ffd9f8e X-Google-Attributes: gidfd817,public X-Google-Thread: 10baee,f91095d43ffd9f8e X-Google-Attributes: gid10baee,public X-Google-ArrivalTime: 2001-06-14 07:41:01 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!grolier!isdnet!inetway!inetway.net!not-for-mail From: "Cozimworsit" <cozimworsit@e-wc.org> Newsgroups: comp.lang.pascal.delphi.misc,borland.public.delphi.internet,alt.comp.lang.borland-delphi Subject: Re: How to use an API contained within a .dll ? Date: Thu, 14 Jun 2001 16:41:36 +0200 Organization: UUNET Lines: 19 Message-ID: <9gajsu$5d3$1@reader1.fr.uu.net> References: <9g8049$stg$1@reader1.fr.uu.net> <992519189.11551.0.pluto.d4ee8199@news.demon.nl> NNTP-Posting-Host: ip-84-233.evc.net X-Trace: reader1.fr.uu.net 992531166 5539 212.95.84.233 (14 Jun 2001 15:06:06 GMT) X-Complaints-To: abuse@fr.uu.net NNTP-Posting-Date: 14 Jun 2001 15:06:06 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400