Modified:
trunk/examples/CPP/7/ADO/ADO.pro
trunk/examples/CPP/7/ADO/AppendX.cpp
Log:
Modified: trunk/examples/CPP/7/ADO/ADO.pro
===================================================================
--- trunk/examples/CPP/7/ADO/ADO.pro 2006-07-18 06:02:12 UTC (rev 446)
+++ trunk/examples/CPP/7/ADO/ADO.pro 2006-07-18 16:12:41 UTC (rev 447)
@@ -9,7 +9,7 @@
# #########################################################
TEMPLATE = app
TARGET = ADO
-DESTDIR = ../bin
+DESTDIR = ./
CONFIG += console
include( ../common.pri )
include( ../config.pri )
@@ -24,24 +24,9 @@
}
# #########################################################
-# UNIX
-# #########################################################
-unix {
- LIBS += -L/usr/lib
-}
-
-# #########################################################
-# OSX
-# #########################################################
-mac {
-
-}
-
-# #########################################################
# FILES
# #########################################################
-HEADERS = \
- AppendX.h
+HEADERS =
SOURCES = \
- AppendX.cpp
+ main.cpp
Modified: trunk/examples/CPP/7/ADO/AppendX.cpp
===================================================================
--- trunk/examples/CPP/7/ADO/AppendX.cpp 2006-07-18 06:02:12 UTC (rev 446)
+++ trunk/examples/CPP/7/ADO/AppendX.cpp 2006-07-18 16:12:41 UTC (rev 447)
@@ -62,8 +62,7 @@
IADORecordBinding *picRs = NULL; //Interface Pointer declared.(VC++ Extensions)
CEmployeeRs emprs; //C++ class object
- _bstr_t strCnn("Provider='sqloledb';Data Source='NorthwindMySQL';Initial
Catalog='Northwind';Integrated Security='SSPI';");
-
+ _bstr_t strCnn("Provider='MSDASQL';Data Source='NorthwindMySQL';Initial
Catalog='Northwind';");
_bstr_t strMessage, strAuthorID;
int intRoyalty;
@@ -73,7 +72,10 @@
{
//Open a Connection.
TESTHR(pConnection.CreateInstance(__uuidof(Connection)));
- hr = pConnection->Open(strCnn,"","",adConnectUnspecified);
+printf( "[PAH][%s][%d]\n", __FILE__, __LINE__ );
+ pConnection->ConnectionString =
"DSN=NorthwindMySQL;UID=myodbctest;PWD=myodbctest;";
+ hr = pConnection->Open( strCnn, "", "", adConnectUnspecified );
+printf( "[PAH][%s][%d] %d\n", __FILE__, __LINE__, hr );
pConnection->CursorLocation = adUseClient;
//Open Command Object with one Parameter
| Thread |
|---|
| • Connector/ODBC 5 commit: r447 - trunk/examples/CPP/7/ADO | pharvey | 18 Jul |