加载 SQLite3.dll
#include <SQLite.au3>
_SQLite_Startup([$sDll_Filename = "sqlite3.dll" [, $bUTF8ErrorMsg = False [, $bForceLocal = 0 [, $sPrintCallback = __SQLite_ConsoleWrite()]]]])
$sDll_Filename | [可选参数] Dll 文件名 |
$bUTF8ErrorMsg | [可选参数] 强制 ConsoleWrite 显示 UTF8 字符 |
$bForceLocal | [可选参数] Forces SQLite to use a local DLL, otherwise the DLL will be downloaded. |
$sPrintCallback | [可选参数] The string name of a user-defined callback function that is invoked when SQLite needs to display a diagnostic message. See Remarks for more. |
成功: | 返回 SQLite3.dll 路径 |
失败: | 设置 @error |
#include <SQLite.au3>
#include <SQLite.dll.au3>
Local $sSQliteDll
$sSQliteDll = _SQLite_Startup()
If @error Then
MsgBox(16, "SQLite Error", "SQLite3.dll Can't be Loaded!")
Exit -1
EndIf
MsgBox(4096, "SQLite3.dll Loaded", $sSQliteDll)
ConsoleWrite("_SQLite_LibVersion=" & _SQLite_LibVersion() & @CRLF)
_SQLite_Shutdown()