Two changes need to be made to all of the DllImports for "winsqlite3":
- Calling convention has to be switched from
Cdecl to StdCall
ExactSpelling has to be set to true
For example:
[DllImport("winsqlite3", EntryPoint = "sqlite3_open", CallingConvention = CallingConvention.Cdecl)]
should be:
[DllImport("winsqlite3", EntryPoint = "sqlite3_open", CallingConvention = CallingConvention.StdCall, ExactSpelling = true)]