NOCaut <per...@mail.ru> wrote: > I now how work with sqlite guys > > my problem: in const char * and i wont wchar_t*. becouse wchar_t* - > unicode type understand > > int sqlite3_exec( > sqlite3*, /* An open database */ > const char *sql, /* SQL to be executed */ > sqlite3_callback, /* Callback function */ > void *, /* 1st argument to callback function */ > char **errmsg /* Error msg written here */ > );
Don't use sqlite3_exec. Use sqlite3_prepare16 (which accepts wchar_t*), sqlite3_step, sqlite3_finalize. Read text from columns with sqlite3_column_text16 (which returns wchar_t*). -- Igor Tandetnik _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users