![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
allan.speir (AT) googlemail (DOT) 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? Where is the old .dll? Presumably you owould put the new one in the same directory as the old one (i.e. replace it). In general on Windows, dll's are found in the PATH, same as an .exe. I have no idea if the oracle interface does anything to override that. $0.10 |
#4
| |||
| |||
|
|
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 |
![]() |
| Thread Tools | |
| Display Modes | |
| |