Loading client library from pre-defined directory
Posted: 26.09.2009, 11:00
Anyone knows how to "tell" ZEOS Connection to load client libraries from particular directory/path in pre-winXPSP1 OSes (where SetDLLDirectory API function is not available)?
Problem is when ZEOS is used inside DLL (not exe) and that DLL and database client libs are not inside search path and are not in exe directory which uses this DLL (they are in same dir where DLL resides). In that scenario client libraries are out of scope of TZNativeLibraryLoader.LoadNativeLibrary function.
IMHO, possible solution is extending TZNativeLibraryLoader with Locations property - when I look at the source, that seems like unfinished work, but maybe there is some, already existing, better way??
Problem is when ZEOS is used inside DLL (not exe) and that DLL and database client libs are not inside search path and are not in exe directory which uses this DLL (they are in same dir where DLL resides). In that scenario client libraries are out of scope of TZNativeLibraryLoader.LoadNativeLibrary function.
IMHO, possible solution is extending TZNativeLibraryLoader with Locations property - when I look at the source, that seems like unfinished work, but maybe there is some, already existing, better way??