X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a144affed28cbd6828dfbe8c17b4cac989e7a6b3..3abf2c720bea956795f6958e21db292cde614f52:/include/wx/db.h diff --git a/include/wx/db.h b/include/wx/db.h index 29efb2b3a6..31bc02b3b0 100644 --- a/include/wx/db.h +++ b/include/wx/db.h @@ -54,6 +54,9 @@ #include "wx/setup.h" +#include "wx/defs.h" +#include "wx/string.h" + extern "C" { #ifdef __VISUALC__ // If you use the wxDbCreateDataSource() function with MSW/VC6, @@ -600,7 +603,7 @@ public: wxDbColInf *GetColumns(wxChar *tableName[], const wxChar *userID=NULL); wxDbColInf *GetColumns(const wxString &tableName, UWORD *numCols, const wxChar *userID=NULL); - UWORD GetColumnCount(const wxString &tableName, const wxChar *userID=NULL); + int GetColumnCount(const wxString &tableName, const wxChar *userID=NULL); const wxChar *GetDatabaseName(void) {return dbInf.dbmsName;} const wxString &GetDataSource(void) {return dsn;} const wxString &GetDatasourceName(void){return dsn;} @@ -705,7 +708,7 @@ int WXDLLEXPORT wxDbCreateDataSource(const wxString &driverName, const wxString // the first time using SQL_FETCH_FIRST. Continue to call it // using SQL_FETCH_NEXT until you've exhausted the list. bool WXDLLEXPORT wxDbGetDataSource(HENV henv, wxChar *Dsn, SWORD DsnMax, wxChar *DsDesc, - SWORD DsDescMax, DWORD direction = SQL_FETCH_NEXT); + SWORD DsDescMax, UWORD direction = SQL_FETCH_NEXT); // Change this to 0 to remove use of all deprecated functions