git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27328 
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
 bool wxDb::Open(const wxString& inConnectStr, bool failOnDataTypeUnsupported)
 {
     wxASSERT(inConnectStr.Length());
 bool wxDb::Open(const wxString& inConnectStr, bool failOnDataTypeUnsupported)
 {
     wxASSERT(inConnectStr.Length());
-    dsn        = "";
-    uid        = "";
-    authStr    = "";
+    dsn        = wxT("");
+    uid        = wxT("");
+    authStr    = wxT("");
             cout << wxT("SQLSetConnectOption(CURSOR_LIB) successful") << endl;
         else
             cout << wxT("SQLSetConnectOption(CURSOR_LIB) failed") << endl;
             cout << wxT("SQLSetConnectOption(CURSOR_LIB) successful") << endl;
         else
             cout << wxT("SQLSetConnectOption(CURSOR_LIB) failed") << endl;
+#else
+        wxUnusedVar(retcode);
 #endif
     }
 
     // Connect to the data source
 #endif
     }
 
     // Connect to the data source
-    UCHAR outConnectBuffer[SQL_MAX_CONNECTSTR_LEN+1];  // MS recommends at least 1k buffer
+    SQLTCHAR outConnectBuffer[SQL_MAX_CONNECTSTR_LEN+1];  // MS recommends at least 1k buffer
     short outConnectBufferLen;
 
     inConnectionStr = inConnectStr;
 
     short outConnectBufferLen;
 
     inConnectionStr = inConnectStr;
 
-    retcode = SQLDriverConnect(hdbc, NULL, (UCHAR FAR *)inConnectionStr.c_str(),
-                        inConnectionStr.Length(), (UCHAR FAR *)outConnectBuffer,
+    retcode = SQLDriverConnect(hdbc, NULL, (SQLTCHAR FAR *)inConnectionStr.c_str(),
+                        inConnectionStr.Length(), (SQLTCHAR FAR *)outConnectBuffer,
                         sizeof(outConnectBuffer), &outConnectBufferLen, SQL_DRIVER_COMPLETE );
 
     if ((retcode != SQL_SUCCESS) &&
                         sizeof(outConnectBuffer), &outConnectBufferLen, SQL_DRIVER_COMPLETE );
 
     if ((retcode != SQL_SUCCESS) &&
     uid        = Uid;
     authStr    = AuthStr;
 
     uid        = Uid;
     authStr    = AuthStr;
 
-    inConnectionStr = "";
-    outConnectionStr = "";
+    inConnectionStr = wxT("");
+    outConnectionStr = wxT("");
     if (copyDb->OpenedWithConnectionString())
     {
         // Connect to the data source
     if (copyDb->OpenedWithConnectionString())
     {
         // Connect to the data source
-        UCHAR outConnectBuffer[SQL_MAX_CONNECTSTR_LEN+1];
+        SQLTCHAR outConnectBuffer[SQL_MAX_CONNECTSTR_LEN+1];
         short outConnectBufferLen;
 
         inConnectionStr = copyDb->GetConnectionInStr();
 
         short outConnectBufferLen;
 
         inConnectionStr = copyDb->GetConnectionInStr();
 
-        retcode = SQLDriverConnect(hdbc, NULL, (UCHAR FAR *)inConnectionStr.c_str(),
-                            inConnectionStr.Length(), (UCHAR FAR *)outConnectBuffer,
+        retcode = SQLDriverConnect(hdbc, NULL, (SQLTCHAR FAR *)inConnectionStr.c_str(),
+                            inConnectionStr.Length(), (SQLTCHAR FAR *)outConnectBuffer,
                             sizeof(outConnectBuffer), &outConnectBufferLen, SQL_DRIVER_COMPLETE);
 
         if ((retcode != SQL_SUCCESS) &&
                             sizeof(outConnectBuffer), &outConnectBufferLen, SQL_DRIVER_COMPLETE);
 
         if ((retcode != SQL_SUCCESS) &&
 
                         wxString strMsg;
                         strMsg.Printf(wxT("wxDbTable::bindParams(): Unknown column type for colDefs %d colName %s"),
                                     colNo,colDefs[colNo].ColName);
                         wxString strMsg;
                         strMsg.Printf(wxT("wxDbTable::bindParams(): Unknown column type for colDefs %d colName %s"),
                                     colNo,colDefs[colNo].ColName);
-                        wxFAIL_MSG(wxT(strMsg));
+                        wxFAIL_MSG(strMsg.c_str());