Recent

Author Topic: SOLVED: LoadLibrary using win10 lazarus 1.8.x 64 and old_32.dll  (Read 1737 times)

wbeppler

  • New member
  • *
  • Posts: 9
hello,
when i use my old win7 with lazarus 1.6.x 32 bit all works fine
but when i use my win10 with lazarus 1.8.4 64 bit it seems that my dll is not loaded
the dll is in the system32 folder and in the folder of the exe


code:
  LibHandle := LoadLibrary('my_lib32.dll');
 
  if LibHandle <> 0 then
  begin
     ...do it... (not working)
  end
  else
     showmessage('no dll');
  end;
« Last Edit: May 24, 2018, 12:04:22 pm by wbeppler »

Phil

  • Hero Member
  • *****
  • Posts: 2737
Re: LoadLibrary using win10 lazarus 1.8.x 64 and old_32.dll
« Reply #1 on: May 24, 2018, 12:14:20 am »
hello,
when i use my old win7 with lazarus 1.6.x 32 bit all works fine
but when i use my win10 with lazarus 1.8.4 64 bit it seems that my dll is not loaded
the dll is in the system32 folder and in the folder of the exe

Recompile the DLL with 64-bit FPC.

wbeppler

  • New member
  • *
  • Posts: 9
Re: SOLVED: LoadLibrary using win10 lazarus 1.8.x 64 and old_32.dll
« Reply #2 on: May 24, 2018, 12:07:04 pm »
because the dll is not selfmade i could not compile it under 64 bit, so i changed to lazarus installation in 32 bit and compiled my application under 32 bit, then the other dll's to get connected to the database never worked but these i could make a copy from my older win7 pc and so all works fine

thanks for the idea

ASerge

  • Hero Member
  • *****
  • Posts: 2212
Re: SOLVED: LoadLibrary using win10 lazarus 1.8.x 64 and old_32.dll
« Reply #3 on: May 24, 2018, 09:02:50 pm »
...the dll is in the system32 folder and...
By the way, the system32 folder is different for 64-bit and 32-bit applications.

 

TinyPortal © 2005-2018