Delphi 2006 loading libraries
Posted: 14.07.2006, 11:11
I'm using Delphi 2006 and versoin 6.5.1 zeos with Posgres V8.1. Zeos reports that it can't find either libpq81.dll or libpq.dll when I try connecting to the server. Stepping through the code shows that loadlibrary is not returning a handle.
I wrote a test appication to see what was happening. I specified the full filename for the dll (including path) and checked the file exists before calling loadlibrary. I have tried loading both libpq81.dl and libpq.dll and neither library is loaded. If I try loading another dll that was written using Delphi it loads ok. pgAdmin works fine.
I've used the same code on Delphi 7 and it works correctly. Does anyone know why?
Thanks.
Gerard.
I wrote a test appication to see what was happening. I specified the full filename for the dll (including path) and checked the file exists before calling loadlibrary. I have tried loading both libpq81.dl and libpq.dll and neither library is loaded. If I try loading another dll that was written using Delphi it loads ok. pgAdmin works fine.
I've used the same code on Delphi 7 and it works correctly. Does anyone know why?
Thanks.
Gerard.