资源在CSDN里搜索
http://download.csdn.net/detail/akof1314/2753306
DbSqlite封装确实好用,但是有个致命的错误。
MFC设置为Unicode的时候, Bind文本的时候
修正如下
bool
CSqlStatement::Bind(int pos_zero_indexed, LPCTSTR value)
{
bool fResult = TRUE;
CString v = CString(value);
int length = 0;
#if defined(_UNICODE) || defined(UNICODE)
length = v.GetLength() * 2;
#else
length = v.GetLength();
#endif
int rc = _sqlite3_bind_text(m_stmt, pos_zero_indexed+1,
v, length, SQLITE_TRANSIENT);
if (rc != SQLITE_OK )
{
fResult = false;
}
return fResult;
}