Page 1 of 1

Calling convention of Devart sqlite

Posted: Fri 13 May 2011 19:46
by zhichao
I am compiling sqlite from source to take advantage of the SEE for encryption support. During this, I found both public domain sqlite3.dll and the one I compiled are using __cdecl calling convention. I am wondering when devart P/Invoke the sqlite3.dll, does it use CallingConvention.StdCall (which is default) or CallingConvention.CDecl? Because mixing these two, it will cause stack corruption. Clarification is really needed!

Please help!

Posted: Tue 17 May 2011 07:46
by Shalex
We are using CallingConvention.Cdecl.

Posted: Tue 21 Jun 2011 21:35
by arcyonline
thanks for the info! well useful.