the cast to UTF8String would hold the pansichar (it’d be a struct with an array of ansichar inside it). It would get freed some time after the call (end of scope).
Sorry for delay Carlo. Had to put together a test case. Buggered if I can get this DLL to hook in. Have tried several things as per test code attached. Clearly doing something wrong.
Thanks, logged as bugs://82675 (for sqlite interop). Do note that we have an sqlite.fx that should already link in sqlite, without a dependency on the dll.
I can’t seem to get the undefined export issue you were talking about … I do get an access violation though, this because sqlite3_version is a variable not a function. You can use the libversion api to get the version as function:
SQLITE_API SQLITE_EXTERN const char sqlite3_version[]; // <<< variable
SQLITE_API const char *sqlite3_libversion(void); // api that returns above
SQLITE_API const char *sqlite3_sourceid(void);
SQLITE_API int sqlite3_libversion_number(void);