QB64.org Forum

Active Forums => QB64 Discussion => Topic started by: MLambert on November 04, 2019, 10:29:50 pm

Title: Cannot find DLL since Changing to latest QB64 64 Bit
Post by: MLambert 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
Title: Re: Cannot find DLL since Changing to latest QB64 64 Bit
Post by: SMcNeill 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.
Title: Re: Cannot find DLL since Changing to latest QB64 64 Bit
Post by: MLambert 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
Title: Re: Cannot find DLL since Changing to latest QB64 64 Bit
Post by: jack 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
Title: Re: Cannot find DLL since Changing to latest QB64 64 Bit
Post by: MLambert on November 05, 2019, 04:16:38 pm
Thank you ..

Mike