| Forum List • Thread List • Refresh • New Topic • Search • Previous • Next 1 | 1. What happen when i called wxDatabase Object, but prompt me error #2585 | #include "wx/odbc.h"
void MyApp::ConnectDB() { wxDatabase Database;
}
error message is:
'wxDatabase' undeclared (first use this function)
Thank you.
Post Edited (08-31-03 10:06)Meow~ | 2. Re: What happen when i called wxDatabase Object, but prompt me error #2586 | Try wxDb instead: http://g.yi.org/_scripts/file.php?f=10508&r=106 | 3. Re: What happen when i called wxDatabase Object, but prompt me error #2587 | i getting blur... what is the different between wxDB and wxODBC?
do you have any example?
whats going on with this, when i called like this?
wxDb *dbms;
if (dbms->isOpen()) { ... }
it prompt me: "no matching function for call to "wxDB::isOpen()" ?
Thank you
Meow~ | 4. Re: What happen when i called wxDatabase Object, but prompt me error #2588 | That link is to wxDatabase doc, have you checked?
"A much more robust and feature-rich set of ODBC classes is now available and recommended for use in place of the wxDatabase class.
See details of these classes in: wxDb, wxDbTable"
Doc says, IsOpen(), not isOpen(). | 5. Re: What happen when i called wxDatabase Object, but prompt me error #2589 | Wow... case sensitive... @@"
so, it seems like wxDB powerful than wxODBC?
Thank you.
Meow~ | 6. Re: What happen when i called wxDatabase Object, but prompt me error #2590 | class odbcSQL { private: wxDb *dbms; };
..... ...
if (!dbms->ExecSql(sqlString.c_str())){ countRow=0; return countRow; }
why it prompt me this error message ? [Link Error] undefined reference to wxDb::ExecSql(wxString const&)"
Thank you.Meow~ | 7. Re: What happen when i called wxDatabase Object, but prompt me error #2591 | ".c_str" is not necessary. Don't know what's wrong actually this time if your lib is OK. | 8. Re: What happen when i called wxDatabase Object, but prompt me error #2592 | removed, but, still same. :(
forgot tell you, dbms->Open("mysql","name","password"); cant run also, same problem with ExecSQL
sigh...
Thank you
Post Edited (08-31-03 19:43)Meow~ | Forum List • Thread List • Refresh • New Topic • Search • Previous • Next 1 |
|
|