Author Topic: Cannot find DLL since Changing to latest QB64 64 Bit  (Read 3427 times)

0 Members and 1 Guest are viewing this topic.

Offline MLambert

  • Forum Regular
  • Posts: 115
    • View Profile
Cannot find DLL since Changing to latest QB64 64 Bit
« on: November 04, 2019, 10:29:50 pm »
Hi,

I have updated to the latest QB64 version.

I am now getting the error "Cannot find dynamic link library" when executing the .exe file.

I reverted back to the previous 32 bit version, recompiled and no problems.

Why is this happening ?

The DLL is in all of the .exe libraries and I have also put it into the system32 folder as well.

Mike

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
Re: Cannot find DLL since Changing to latest QB64 64 Bit
« Reply #1 on: November 04, 2019, 11:21:39 pm »
A 32-bit DLL won’t work with 64-bit EXE files.  You’ll need to find a 64-bit DLL and use the proper version for your OS as the offsets are different in each.

Take a look at my SaveImage library and you can see where it has 2 different DLLs which it uses, depending on 32 or 64 bit OS, included with it.
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

Offline MLambert

  • Forum Regular
  • Posts: 115
    • View Profile
Re: Cannot find DLL since Changing to latest QB64 64 Bit
« Reply #2 on: November 05, 2019, 03:25:51 am »
Thank you.

I did consider this but hoped that it was not the answer because I can't find a 64 Bit version of mysql.dll.

Mike

Offline jack

  • Seasoned Forum Regular
  • Posts: 408
    • View Profile
Re: Cannot find DLL since Changing to latest QB64 64 Bit
« Reply #3 on: November 05, 2019, 08:57:39 am »
you can find it here https://dev.mysql.com/downloads/mysql/
the dll is named libmysql.dll so you may need to tweak your program a bit
also, your mysql function declarations may need changing to account for 64-bit handles and perhaps for other types as well.
an interesting and informative comparison between mySql and Sqlite https://www.keycdn.com/support/sqlite-vs-mysql
« Last Edit: November 05, 2019, 10:02:25 am by jack »

Offline MLambert

  • Forum Regular
  • Posts: 115
    • View Profile
Re: Cannot find DLL since Changing to latest QB64 64 Bit
« Reply #4 on: November 05, 2019, 04:16:38 pm »
Thank you ..

Mike