[SOLVED] Problem in Components/paradox/demo/testparadox.exe lazarus / 16-Databases ---------------------------------------------------------------------- Hopestation · 2016-01-03 12:55 Hi. I am using Lazarus 1.4.4, fpc 2.6.4 in Windows10. I tried running this executable. There is no Paradox file provided so I chose Biblio.db from pdx/demos/fishfact. I got the message "Could not load the library libpx.so.0". I searched the Lazarus folder and couldn't find it so I looked on line and found references to the RPM version for Linux but nothing for Windows. I thought that maybe the exe file was compiled for Linux, so I copied the demo folder to my local Lazarus folder and compiled it in Lazarus. It compiled without a problem but when it ran it gave a similar message. Checking the components I found in the Tparadox component PXlibrary was set to libpx.so.0. What should this be set to for Windows? Thanks. ---------------------------------------------------------------------- balazsszekely · 2016-01-03 13:12 Click to PDX component(TParadox) then change PXLibrary property from libpx.so.0 to whatever dll is the equivalent under windows. ---------------------------------------------------------------------- Hopestation · 2016-01-03 13:30 I've looked for Paradox dll online and found an answer from 2014 on this forum. It included an attached pxlib.dll, which I have downloaded and copied into the components\paradox\Lib\i386-win32\win32 and added this path to Project Options/ Lib. I have also copied into Windows\SYSWOW. I have set the PXLibrary to pxlib.dll. When I try to activate the table I get the message "Could not load library : pxlib.dll. What should I do next? ---------------------------------------------------------------------- balazsszekely · 2016-01-03 13:59 The library is loaded internally by pxlib.pp which is a FPC unit. Anyway open a new project then try the following(make sure pxlib.dll is in the project or system folder: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i uses dynlibs; procedure TForm1.Button1Click(Sender: TObject);var  DllHandle: TLibHandle;begin  DllHandle := LoadLibrary('pxlib.dll');  if DllHandle = 0 then    ShowMessage(SysErrorMessage(GetLastOSError))  else    ShowMessage('Successfully loaded');end;         What is the error message? ---------------------------------------------------------------------- Hopestation · 2016-01-03 15:09 I get the message:   "The specified module could not be found" I found pxlib.pp in     C:\lazarus\fpc\2.6.4\source\packages\pxlib\src. Does this tell you anything? ---------------------------------------------------------------------- balazsszekely · 2016-01-03 15:51 Quote"The specified module could not be found"It means:  1. the dll is not present  2. it's corrupted  3. it's the wrong architecture(32/64) QuoteI found pxlib.pp in     C:\lazarus\fpc\2.6.4\source\packages\pxlib\src. Does this tell you anything?I know is there. pxlib will try to load the dll in the same way as we did(see procedure Loadpxlib). ---------------------------------------------------------------------- Jurassic Pork · 2016-01-03 15:52 hello, it seems there is a problem with the library pxlib.dll. when i open this dll with the program dependancy walker ( to see dlls dependancies) i have this error : QuoteError: At least one module has an unresolved import due to a missing export function in an implicitly dependent module. Error: Modules with different CPU types were found. and the line in error  is on iconv.dll 64 bits .  Why a dependancy on a 64 bits dll for a 32 bits dll ? ---------------------------------------------------------------------- Jurassic Pork · 2016-01-03 16:05 found a solution :  try to find the file iconv.dll (32 bits) in your system and put this dll in the same directory that your pxlib.dll If you can't find the iconv.dll in your system , you can find it in this zip file : ftp://ftp.gnupg.org/gcrypt/binary/libiconv-1.9.1.dll.zip ---------------------------------------------------------------------- Hopestation · 2016-01-03 21:14 Thanks for that. I found iconv.dll in xampp\Mercurymail and it solves the problem.