Search found 49 matches

by Big_Lebowski
Fri May 22, 2009 5:43 pm
Forum: C++ Development
Topic: wxSQLIte3, how to tie wxTextCtrl* and ExecuteUpdate()?
Replies: 8
Views: 1403

Take a look at the sample application accompanying wxSQLite3 and use prepared statements and method wxSQLite3Statement::Bind to pass values to your SQL statement. Regards, Ulrich Wow! it works :)) Thank you utelle, I can't believe it, I struggled with it for a week :)) I did this code: wxSQLite3Sta...
by Big_Lebowski
Fri May 22, 2009 2:23 pm
Forum: C++ Development
Topic: wxSQLIte3, how to tie wxTextCtrl* and ExecuteUpdate()?
Replies: 8
Views: 1403

Thank you doublemax, but it looks like wxSQLite3StatementBuffer type is not wxString....

it reads first characters of the string...
For example:
phone: "5134782920" is written into databese as "5"
name: "Albert Einstein" is written into database as "A" and so on.....
by Big_Lebowski
Fri May 22, 2009 11:02 am
Forum: C++ Development
Topic: wxSQLIte3, how to tie wxTextCtrl* and ExecuteUpdate()?
Replies: 8
Views: 1403

OK, Visual C++ 9 EE says: pbgui_mainframe.cpp .\pbgui_mainframe.cpp(72) : error C2678: бинарный '+': не найден оператор, принимающий левый операнд типа 'const char [28]' (или приемлемое преобразование отсутствует) C:\wxWidgets-2.8.10\include\wx/string.h(1045): может быть 'wxString operator +(const w...
by Big_Lebowski
Fri May 22, 2009 10:47 am
Forum: C++ Development
Topic: wxSQLIte3, how to tie wxTextCtrl* and ExecuteUpdate()?
Replies: 8
Views: 1403

wxSQLIte3, how to tie wxTextCtrl* and ExecuteUpdate()?

Hello, I am newbie both in C++ and wxWidgets, wxSQLIte3. Trying to read input from wxTextCtrl and push it into wxSQLite3 database. I have this code: void PBGUI_MainFrame::OnAddClick( wxCommandEvent& event ) { wxString s_phone = m_textCtrlPhone->GetValue(); wxString s_name = m_textCtrlName->GetValue(...