]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/db.cpp
wxMotif compilation fixes for wxDataObject and PROCESS_EVENTS (wxSocket)
[wxWidgets.git] / src / common / db.cpp
index 378b02a37451a090ce01ad97f1162b9d7a5c97c1..073e09d2523ef49cb822f9e88fa7d1a125cee1e4 100644 (file)
@@ -57,6 +57,7 @@
        #ifndef WX_PRECOMP
                #include  "wx/string.h"
        #endif //WX_PRECOMP
+       #include "wx/filefn.h"
 #endif
 
 #if wxMAJOR_VERSION == 1
@@ -83,7 +84,7 @@
        #include "wx/db.h"
 #endif
 
-DbList* WXDLLEXPORT PtrBegDbList = 0;
+DbList WXDLLEXPORT *PtrBegDbList = 0;
 
 #if __WXDEBUG__ > 0
         #if   wxMAJOR_VERSION == 2
@@ -773,8 +774,8 @@ void wxDB::Close(void)
                tiu = (CstructTablesInUse *)pNode->Data();
                if (tiu->pDb == this)
                {
-                       sprintf(s, "(%-20s)     tableID:[%6lu]     pDb:[%lu]", tiu->tableName,tiu->tableID,tiu->pDb);
-                       sprintf(s2,"Orphaned found using pDb:[%lu]",this);
+                       sprintf(s, "(%-20s)     tableID:[%6lu]     pDb:[%p]", tiu->tableName,tiu->tableID,tiu->pDb);
+                       sprintf(s2,"Orphaned found using pDb:[%p]",this);
                        wxMessageBox (s,s2);
                }
                pNode = pNode->Next();
@@ -782,7 +783,8 @@ void wxDB::Close(void)
 #endif
 
        // Copy the error messages to a global variable
-       for (int i = 0; i < DB_MAX_ERROR_HISTORY; i++)
+       int i;
+       for (i = 0; i < DB_MAX_ERROR_HISTORY; i++)
                strcpy(DBerrorList[i],errorList[i]);
 
 } // wxDB::Close()
@@ -1727,7 +1729,7 @@ DBMS wxDB::Dbms(void)
 
 
 /********** GetDbConnection() **********/
-wxDB* WXDLLEXPORT GetDbConnection(DbStuff *pDbStuff)
+wxDB WXDLLEXPORT *GetDbConnection(DbStuff *pDbStuff)
 {
        DbList *pList;