FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour How to troubleshoot LoadLibrary() failure?
Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM
How to troubleshoot LoadLibrary() failure?
Posted: Tue Apr 20, 2021 08:21 AM

Hi guys,
I have a program that loads blat.dll using LoadLibrary().
From my pc during testing everything works but on customer's pc, I keep getting a return value of 0 from LoadLibrary()
Any idea on what could cause this? The exe and dll is in the same folder at c:\emailer

Exe was linked using Harbour, hbmk2 and FWH1912

TIA

FWH 11.08/FWH 19.12

BCC5.82/BCC7.3

xHarbour/Harbour
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: How to troubleshoot LoadLibrary() failure?
Posted: Tue Apr 20, 2021 08:25 AM
Hua,

Please use this tool:
https://github.com/FiveTechSoft/FWH_tools/blob/master/peinfo.exe

peinfo.exe blat.dll

and check what external DLLs blat.dll requires. It seems as your customer does not have all of them.
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM
Re: How to troubleshoot LoadLibrary() failure?
Posted: Tue Apr 20, 2021 08:44 AM
Thank you for the prompt reply Antonio!

What should I be looking at though?

FWH 11.08/FWH 19.12

BCC5.82/BCC7.3

xHarbour/Harbour

Continue the discussion