| Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next 1 | 1. How to use wxDB connect to ODBC? #2637 | Hi, i face this problem for few days, still cant fix it... Could somebody guide me?
It always prompt me "linker error, undefined reference to wxDb::Open(..."
Thank you.
#include "wx/db.h" #include "wx/odbc.h"
class getODBC { public: void ConnectODBC();
private:
wxDb *dbms; };
void getODBC::ConnectODBC() { if (dbms->IsOpen()==false) { dbms->Open("MySQL","username","password"); } }Meow~ | 2. Re: How to use wxDB connect to ODBC? #2638 | Are you sure ODBC is enabled in your wx lib? May try this one: http://g.yi.org/_scripts/file.php?f=2618&r=46#5771 | 3. Re: How to use wxDB connect to ODBC? #2643 | Hi, I had set like this in setup.h
#define wxUSE_ODBC 1
but now, prompt me error from "sqltypes.h"
syntax error before ; token conflicting types for `typedef struct tagDATE_STRUCT DATE_STRUCT' previous declaration as `typedef struct _DATE_STRUCT DATE_STRUCT'
and much and much error message... >_<
thank you.Meow~ | Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next 1 |
|
|