Yossep_237 Posted March 9, 2020 Posted March 9, 2020 Hello Every one, I AM a beginner in AutoIT . After study differents languages such as Ruby, C and Ada95 . I found this language very interesting. Actually i am learning how to write efficient scrpits using DB system. SO i have started a tutorial. Here is the code source #include <SQLite.au3> #include <SQLite.dll.au3> _SQLite_Startup(@ScriptDir & "\Config\sqlite3_x64.dll", False, 1) If @error Then MsgBox($MB_SYSTEMMODAL, "SQLite Error", "SQLite3.dll Can't be Loaded!") Exit -1 Else MsgBox($MB_SYSTEMMODAL, "SQLite Error", "SQLite3.dll is present") Exit 0 EndIf ConsoleWrite("_SQLite_LibVersion=" & _SQLite_LibVersion() & @CRLF) When i lauch it i got this error saying that Sqlite3.dll can't be loaded. Therefore i went to see if there are posts about this issue. I found out what i have to do: 1- Download a Sqlite3.dll 64 bits file then 2- If i am using x64 bits system i have to copy and paste the file in c:\Windows\system32 3- If i am using x32 bits system i have to copy and paste the file in c:\Windows\sysWOW64 CORRECT ME IF I AM WRONG ?! 4- Reboot my device 5- Launch the script again but i got the same result. 6- So i went back to net , someone said that if the first settigns don't work . I have to : 1- open Cmd as administrator 2- for 64 bits : regsvr32 "filename.dll" Then i have this message. Pls check out the attached file. Thank you for your help.
Moderators JLogan3o13 Posted March 9, 2020 Moderators Posted March 9, 2020 (edited) Moved to the appropriate forum, as the AutoIt Example Scripts forum very clearly states: Quote Share your cool AutoIt scripts, UDFs and applications with others. Do not post general support questions here, instead use the AutoIt Help and Support forums. Moderation Team Edited March 9, 2020 by JLogan3o13 "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
Nine Posted March 9, 2020 Posted March 9, 2020 (edited) Follow those steps and it will work. 1- Delete all sqlite3.dll from Windows subfolders (to avoid conflict) 2- Download both x86 and x64 Windows binaries into your Download folder (from https://www.sqlite.org/download.html) 3- Extract into Download folder from x86 zip file sqlite3.dll. Copy it to your script folder. 4- Extract into Download folder from x64 zip file sqlite3.dll. Rename it sqlite3_x64.dll. Copy it to your script folder. 5- Use _SQLite_Startup("sqlite3.dll", False, 1) in your script (for both x86 and x64) Edited March 9, 2020 by Nine “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
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