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.