TDCSoftware Posted December 7, 2020 Posted December 7, 2020 Hi, I'm completely new to AutoIt so, please, forgive me for my questions. I'm trying to run the _SQLIte_Open example, quite simple, but I only get the message of the title. SQLIte3.dll is in the same folder of my script so I have no idea what's wrong in the code. Any help would be appreciated. Mauricio
TheXman Posted December 7, 2020 Posted December 7, 2020 If you are using a 64-bit Windows OS, then the most likely cause is that the script can't find sqlite3_x64.dll. By default, _SQLite_Startup() will look for sqlite3.dll when the script is being run using the 32-bit AutoIt interpreter and sqlite3_x64.dll when using the 64-bit AutoIt interpreter. Try putting the sqlite3_x64.dll file in the script's folder and see if i works. CryptoNG UDF: Cryptography API: Next Gen jq UDF: Powerful and Flexible JSON Processor | jqPlayground: An Interactive JSON Processor Xml2Json UDF: Transform XML to JSON | HttpApi UDF: HTTP Server API | Roku Remote: Example Script About Me How To Ask Good Questions On Technical And Scientific Forums (Detailed) | How to Ask Good Technical Questions (Brief) "Any fool can know. The point is to understand." -Albert Einstein "If you think you're a big fish, it's probably because you only swim in small ponds." ~TheXman
water Posted December 7, 2020 Posted December 7, 2020 Starting with AutoIt 3.3.14.2: _SQLite_Startup() no longer automatically downloads DLL files. With the latest beta 3.3.15.1 a download script has been added: Extras\AutoUpdateIt\AutoSQLiteUpdateIt.au3 script to download sqlite dll's used by _SQLite_Startup(). My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
TDCSoftware Posted December 8, 2020 Author Posted December 8, 2020 There is no a sqlite3_x64.dll. If you go to SQLite Download and look for Precompiled binaries for Windows 64, it will download a zip that only contains a sqlite3.dll and a sqlite3.def. I'm working in a W10 64 bits computer.
Gianni Posted December 8, 2020 Posted December 8, 2020 (edited) 3 hours ago, TDCSoftware said: There is no a sqlite3_x64.dll. If you go to SQLite Download and look for Precompiled binaries for Windows 64, it will download a zip that only contains a sqlite3.dll and a sqlite3.def. I'm working in a W10 64 bits computer. save it to your script directory and then just rename it to sqlite3_x64.dll (or whatever else fits your needs) then you can use the following command to force the SQLite engine (that is in that dll file) to be startup from that location: _SQLite_Startup(@ScriptDir & "\sqlite3_x64.dll", False, True) P.S. Warning; using the above command you can force the execution of a 64 bit dll on a 32 bit AutoIt and that is not a good idea.... as @TheXman already pointed out, you have to use a 32bit or 64bit version of the SQLite dll according to what AutoIt version you are using (and not on what Windows version you are) i.e you can use a 32 bit AutoIt version even if we are running on a 64 bit Win10 so, use either 32 or 64 dll version that fits (matches) to the AutoIt version (and not to the Win version) Edited December 8, 2020 by Chimp queensoft 1 Chimp small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt....
Skysnake Posted December 10, 2020 Posted December 10, 2020 If it means anything, I have found that standardizing all on 32bit solves lots of problems. Many tools are not 64 bit ready Skysnake Why is the snake in the sky?
Zedna Posted December 16, 2020 Posted December 16, 2020 There is AutoIt3Wrapper directive to force 32bit AutoIt compilation even on 64bit Windows, so put this at top of your script and compile script from full Scite4AutoIt3 (where is AutoIt3Wrapper included): older AutoIt versions: #AutoIt3Wrapper_UseX64=n latest AutoIt version (direct pragma directive of Aut2Exe): #pragma compile(x64, false) Resources UDF ResourcesEx UDF AutoIt Forum Search
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now