Re: How to load DLL from a specific folder
- From: "Hannes Danzl[NDD]" <hannes@xxxxxxxxxxxxxxxxxxx>
- Date: 29 Sep 2005 23:13:21 -0700
Finn Tolderlund wrote:
>
> "Andy" <andy@xxxxxxxxxx> skrev i en meddelelse
> news:433cbd86@xxxxxxxxxxxxxxxxxxxxxxxxx
> > I have a .pas wrapper for a C++ dll. Currently, it is compiled into the
> > application where it would bombed out without the presence of the dll. How
> > do I make my application load the dll from a specific folder in my code?
> And
> > how do I use my .pas wrapper in this particular case?
>
> You will have to use use dynamic loading of the dll. With LoadLibrary you
> can specift exact path of the dll.
> For examples search google groups for
> LoadLibrary GetProcAddress FreeLibrary
Be aware that sometimes this can create lots of trouble if this DLL is linked
against other dll which are in a different in the path. To solve this you need
to set the CurrentDir to the directory you want to load the DLLs from BEFORE
you call LoadLibrary.
--
Hannes Danzl [NexusDB Developer]
Newsgroup archive at http://www.tamaracka.com/search.htm
.
- References:
- How to load DLL from a specific folder
- From: Andy
- Re: How to load DLL from a specific folder
- From: Finn Tolderlund
- How to load DLL from a specific folder
- Prev by Date: Re: How to load DLL from a specific folder
- Next by Date: Re: JVCL-JvRuntimeDesign package
- Previous by thread: Re: How to load DLL from a specific folder
- Index(es):
Relevant Pages
|