Re: Forms V4.5 and FFI question

From: ddf <oratune_at_msn.com>
Date: Wed, 13 May 2009 08:22:29 -0700 (PDT)
Message-ID: <ddae90cf-0ea3-4629-bb35-f4014e592173_at_e24g2000vbe.googlegroups.com>


On May 12, 2:28 pm, allan.sp..._at_googlemail.com wrote:
> All,
>
> We have a C program that performs some file operations. I have the
> source code and can change it and compile it into a dll. The problem
> is that Forms doesn't seem to find it and keeps picking up the old
> one. I put the dll in the same directory as the fmx files but no joy.
> Is there a way I can tell where Forms looks for it and even how I can
> specifically force it to use and load a specific file?
>
> Where does ora_ffi.find_library and ora_ffi.load_library look?
>
> This is the code (dll name changed)
>
> /*
>
>  * Try and find the DLL already loaded
>
>  */
>
>             lh_ffie2sb := ora_ffi.find_library('dll_name.dll');
>
>         EXCEPTION WHEN ora_ffi.FFI_ERROR THEN
>
> /*
>
>  * Ok not found lets load it
>
>  * The null argument for the LOAD library is the DLL location so if
>
>  * the DLL was not in
>
>  * the working DIR or not in the PATH somewhere we might want to
>
>  * put something in here.
>
>  */
>
>             lh_ffie2sb := ora_ffi.load_library(NULL,'dllname.dll');
>
> Thanks in advance.
>
> Allan

I'm surprised you didn't find the original dll before you started modifying the code. Would it not have been easier to find the original, rename it and place your modified version in the same directory?

David Fitzjarrell Received on Wed May 13 2009 - 17:22:29 CEST

Original text of this message