SQLite Forum

Explicitly specifying the function calling convention in the public functions
Login
You can compile a STDCALL version of the SQLite library as follows:

~~~
   nmake /f Makefile.msc USE_STDCALL=1 sqlite3.dll
~~~

Or, you could just link against `C:\Windows\System32\winsqlite3.dll`
which is already compiled to use STDCALL instead of CDECL.