From: Unknown (UG) Date: Fri, 8 Jan 1999 12:45:07 +0000 (+0000) Subject: no message X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a1218415705b9fcb40dedbc38c55632c0c3cb6df no message git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1336 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/db.h b/include/wx/db.h index de294f32c9..2f4260bcf8 100644 --- a/include/wx/db.h +++ b/include/wx/db.h @@ -365,16 +365,16 @@ struct DbList // for other code segments to use, or close all of them when the application has // completed. -wxDB *GetDbConnection(DbStuff *pDbStuff); -bool FreeDbConnection(wxDB *pDb); -void CloseDbConnections(void); -int NumberDbConnectionsInUse(void); +wxDB* WXDLLEXPORT GetDbConnection(DbStuff *pDbStuff); +bool WXDLLEXPORT FreeDbConnection(wxDB *pDb); +void WXDLLEXPORT CloseDbConnections(void); +int WXDLLEXPORT NumberDbConnectionsInUse(void); // This routine allows you to query a driver manager // for a list of available datasources. Call this routine // the first time using SQL_FETCH_FIRST. Continue to call it // using SQL_FETCH_NEXT until you've exhausted the list. -bool GetDataSource(HENV henv, char *Dsn, SWORD DsnMax, char *DsDesc, SWORD DsDescMax, +bool WXDLLEXPORT GetDataSource(HENV henv, char *Dsn, SWORD DsnMax, char *DsDesc, SWORD DsDescMax, UWORD direction = SQL_FETCH_NEXT); #endif diff --git a/src/common/db.cpp b/src/common/db.cpp index 080b6c44ba..22ea1a380e 100644 --- a/src/common/db.cpp +++ b/src/common/db.cpp @@ -56,7 +56,7 @@ #include #include "wx/db.h" -DbList *PtrBegDbList = 0; +DbList* WXDLLEXPORT PtrBegDbList = 0; /********** wxDB Constructor **********/ wxDB::wxDB(HENV &aHenv) @@ -1353,7 +1353,7 @@ bool wxDB::WriteSqlLog(char *logMsg) /********** GetDbConnection() **********/ -wxDB *GetDbConnection(DbStuff *pDbStuff) +wxDB* WXDLLEXPORT GetDbConnection(DbStuff *pDbStuff) { DbList *pList; @@ -1413,7 +1413,7 @@ wxDB *GetDbConnection(DbStuff *pDbStuff) } // GetDbConnection() /********** FreeDbConnection() **********/ -bool FreeDbConnection(wxDB *pDb) +bool WXDLLEXPORT FreeDbConnection(wxDB *pDb) { DbList *pList; @@ -1430,7 +1430,7 @@ bool FreeDbConnection(wxDB *pDb) } // FreeDbConnection() /********** CloseDbConnections() **********/ -void CloseDbConnections(void) +void WXDLLEXPORT CloseDbConnections(void) { DbList *pList, *pNext; @@ -1450,7 +1450,7 @@ void CloseDbConnections(void) } // CloseDbConnections() /********** NumberDbConnectionsInUse() **********/ -int NumberDbConnectionsInUse(void) +int WXDLLEXPORT NumberDbConnectionsInUse(void) { DbList *pList; int cnt = 0;