Jump to content
faustf

SQLITE AND AUTOIT 3.3.14.3 ERROR

Recommended Posts

faustf

hi guy  i have uploaded Autoit 3.3.12.3 to --> 3.3.14.3 , thankz  for this new release , :D, i insert also a new  , sqlite dll and def in system32 , but  now  my script  (before work correctly ), not  work good  give me  sqlite error 21 library used incorrectly

Func _Sqlite3_Read($sDB, $query_read)

    Local $hQuery, $sMsg, $aRow, $aResult, $iRows, $iColumns

    _SQLite_Startup()
    If @error Then
        MsgBox($MB_SYSTEMMODAL, "SQLite Error", "SQLite3.dll Can't be Loaded!" & @CRLF & @CRLF & _
                "Not FOUND in @SystemDir, @WindowsDir, @ScriptDir, @WorkingDir, @LocalAppDataDir\AutoIt v3\SQLite")
    EndIf
    Local $DB = _SQLite_Open($sDB) ;@ScriptDir & "\WEB-SITE\eBay\eBay.db"
    If @error Then
        MsgBox($MB_SYSTEMMODAL, "SQLite Error", "Can't create a memory Database!")
    EndIf
    $iRval = _SQLite_GetTable(-1, $query_read, $aResult, $iRows, $iColumns)
    If $iRval = $SQLITE_OK Then
        Return $aResult
    Else
        MsgBox($MB_SYSTEMMODAL, "SQLite Error: " & $iRval, _SQLite_ErrMsg())
    EndIf

    _SQLite_Close()
    _SQLite_Shutdown()
EndFunc   ;==>_Sqlite3_Read

and  the string  recall  function is 

Local $aLResult = _Sqlite3_Read(@ScriptDir & "\MaoDb.db", "SELECT * FROM Anagrafica_Arnie WHERE Arnia_Name = " & _SQLite_FastEscape($sLNomeArnia) & ";")

i know  the script is not work ,  soon i posted a worked script sorry but  i have  a short time

 

Share this post


Link to post
Share on other sites
Melba23

faustf,

Hopefully that will fix the problem.

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
faustf

thankz  for reaply @Melba23 and thankz  for  hard  debugging, i tryed to substitute the  file File_Fixed.au3  , Array_Fixed.au3 , WinAPIConv_Fixed.au3 inside the include , of autoit  ,.... i did do that but  , the  error remaning o_O

thankz  again

 

Share this post


Link to post
Share on other sites
Melba23

faustf,

Sorry about that - you must have another problem. Perhaps similar to this:

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×