Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Wolfgang Riedmann" Newsgroups: comp.lang.clipper.visual-objects Subject: Re: Dynamic DLL access Date: Sat, 27 Apr 2013 14:51:13 +0200 Lines: 25 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-Trace: individual.net KLzJzfW/kuFLV1HJmcAaXQnn7OwyQFYdsXsglWwTSeRI0Y3Uw= Cancel-Lock: sha1:eCX0cc7/2BIfrbbSuW2SQkJD+FM= User-Agent: XanaNews/1.18.1.6 Xref: csiph.com comp.lang.clipper.visual-objects:5166 Hi Kai, > Is there any possibility to get this working in VO as well? I tried > adding > > _DLL FUNCTION _SetDllDirectory(lpPathName AS STRING) AS LOGIC > PASCAL:KERNEL32.SetDllDirectoryA > > to my DLL, but every addition of a _DLL FUNCTION that references a > DLL that is not in the same directory as the DLL that has > _SetDllDirectory in it, results in an DllNotFoundException being > thrown. in VO, the DLL must not be in the same directory as the executable, but must be found in the path. I'm using many C dlls referenced with _dll function statements, and normally, on deployment, I keep them in the same directory as the executable. On my development machine, they are never in the executable directory. Wolfgang --