X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cd5bf2a6e3a7d03e8b1f97e989eecdcc63f7151f..a8f4cabe1ea3d5390f1353c0bf5649fa1476e08b:/src/iodbc/connect.c diff --git a/src/iodbc/connect.c b/src/iodbc/connect.c index be9e0f6041..2bd934f6a2 100644 --- a/src/iodbc/connect.c +++ b/src/iodbc/connect.c @@ -24,19 +24,19 @@ * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -#include +#include "config.h" -#include -#include +#include "isql.h" +#include "isqlext.h" -#include +#include "dlproc.h" -#include -#include -#include -#include +#include "herr.h" +#include "henv.h" +#include "hdbc.h" +#include "hstmt.h" -#include +#include "itrace.h" extern char* _iodbcdm_getkeyvalbydsn(); extern char* _iodbcdm_getkeyvalinstr(); @@ -308,7 +308,6 @@ _iodbcdm_driverunload (HDBC hdbc) GENV_t FAR *genv; HPROC hproc; RETCODE retcode = SQL_SUCCESS; - int sqlstat = en_00000; if (hdbc == SQL_NULL_HDBC) { @@ -743,7 +742,7 @@ SQLConnect ( RETCODE SQL_API SQLDriverConnect ( HDBC hdbc, - HWND hwnd, + SQLHWND hwnd, UCHAR FAR * szConnStrIn, SWORD cbConnStrIn, UCHAR FAR * szConnStrOut, @@ -850,7 +849,7 @@ SQLDriverConnect ( break; } - sprintf (cnstr2drv, "DSN=%s;", dsn); + sprintf ((char*)cnstr2drv, "DSN=%s;", dsn); cbConnStrIn += STRLEN (cnstr2drv); STRNCAT (cnstr2drv, szConnStrIn, cbConnStrIn); szConnStrIn = cnstr2drv; @@ -964,17 +963,13 @@ SQLBrowseConnect ( SWORD FAR * pcbConnStrOut) { DBC_t FAR *pdbc = (DBC_t FAR *) hdbc; - HDLL hdll; char FAR *drv; char drvbuf[1024]; char FAR *dsn; char dsnbuf[SQL_MAX_DSN_LENGTH + 1]; - UCHAR cnstr2drv[1024]; HPROC hproc; - HPROC dialproc; - int sqlstat = en_00000; RETCODE retcode = SQL_SUCCESS; RETCODE setopterr = SQL_SUCCESS;