QB64.org Forum
Active Forums => QB64 Discussion => Topic started 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
-
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.
-
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
-
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
-
Thank you ..
Mike