Search found 5 matches

by love8gege
Sun Oct 01, 2017 8:39 am
Forum: wxWidgets Development (Chinese)
Topic: 如何初始化wxchar[]和与wxString转化?
Replies: 1
Views: 745

如何初始化wxchar[]和与wxString转化?

如题 :
我想定义一个 wxchar[16]并初值为 “0000111100001111” 该如何操作?
再处理完成会,我想将此wxchar[]转化为wxString ,又该如何操作?
谢谢
by love8gege
Tue Sep 05, 2017 12:57 pm
Forum: Database Related
Topic: Run error when the database exsited
Replies: 6
Views: 1110

Re: Run error when the database exsited

thanks your reply!
i want to use the database with no encryption method ,but i don't know how to do ? can you tell me? thanks again!
by love8gege
Sun Sep 03, 2017 1:25 pm
Forum: Database Related
Topic: Run error when the database exsited
Replies: 6
Views: 1110

Re: Run error when the database exsited

HOHO~ I see ,the error has resolved ,the code above is correct . THANK but, when I add the code : db.ExecuteUpdate("CREATE TABLE emp(useraccount CHAR(11) PRIMARY KEY UNIQUE NOT NULL, password CHAR(8) NOT NULL, firsttime DATE, secondtime DATE, thirdtime DATE, times INTEGER);"); now new problem is com...
by love8gege
Sat Sep 02, 2017 11:50 am
Forum: Database Related
Topic: Run error when the database exsited
Replies: 6
Views: 1110

Run error when the database exsited

const wxString dbFile = wxGetCwd() + "/test.db";    m_textctrl->AppendText(dbFile);    wxSQLite3Database db;    if (wxSQLite3Database::HasEncryptionSupport())    {       db.Open(dbFile, wxString(wxT("password")));       m_textctrl->AppendText("open db with password\n");    }    else    {       db.O...
by love8gege
Fri Sep 01, 2017 12:56 pm
Forum: wxWidgets Development (Chinese)
Topic: 已存在数据库时打开 出错
Replies: 0
Views: 1023

已存在数据库时打开 出错

刚刚学习sqlite3 遇到这样的问题: const wxString dbFile = wxGetCwd() + "/test.db"; m_textctrl->AppendText(dbFile); wxSQLite3Database db; if (wxSQLite3Database::HasEncryptionSupport()) { db.Open(dbFile, wxString(wxT("password"))); m_textctrl->AppendText("open db with password\n"); } else { db.Open(dbFile); m_text...