Added:
trunk/examples/CPP/7/ADO/ADO.pro
trunk/examples/CPP/7/ADO/exampleADO.vpj
Removed:
trunk/examples/CPP/7/ADO/ADO.ncb
trunk/examples/CPP/7/ADO/ADO.sln
trunk/examples/CPP/7/ADO/ADO.suo
trunk/examples/CPP/7/ADO/ADO.vcproj
Modified:
trunk/connector-odbc.vpw
trunk/examples/CPP/7/ADO/AppendX.cpp
trunk/examples/CPP/7/ADO/AppendX.h
Log:
Modified: trunk/connector-odbc.vpw
===================================================================
--- trunk/connector-odbc.vpw 2006-07-18 05:14:09 UTC (rev 445)
+++ trunk/connector-odbc.vpw 2006-07-18 06:02:12 UTC (rev 446)
@@ -2,6 +2,7 @@
<Workspace Version="10.0" VendorName="SlickEdit">
<Projects>
<Project File="dltest/dltest.vpj" />
+ <Project File="examples/CPP/7/ADO/exampleADO.vpj" />
<Project File="MYODBCBrw/MYODBCBrw.vpj" />
<Project File="MYODBCBrw/MYODBCBrwApp/MYODBCBrwApp.vpj" />
<Project File="MYODBCBrw/MYODBCBrwLib/MYODBCBrwLib.vpj" />
Deleted: trunk/examples/CPP/7/ADO/ADO.ncb
===================================================================
--- trunk/examples/CPP/7/ADO/ADO.ncb 2006-07-18 05:14:09 UTC (rev 445)
+++ trunk/examples/CPP/7/ADO/ADO.ncb 2006-07-18 06:02:12 UTC (rev 446)
@@ -1,54 +0,0 @@
-Microsoft C/C++ MSF 7.00
-DS
-
-
-
-
-
-
-
-
-#d@0
-
-
-
-
-
-
-#d
-
-
-
-
-
-
-
-
-
-
-#d
-
-
-
-
-
-
-
-
-
-
-
-
-
-#d@0
-
-
-
-
-
-
-
-
-
\CPP\7\ADO\ADO.vcproj|Debug|Win32
-
-
\ No newline at end of file
Added: trunk/examples/CPP/7/ADO/ADO.pro
===================================================================
--- trunk/examples/CPP/7/ADO/ADO.pro 2006-07-18 05:14:09 UTC (rev 445)
+++ trunk/examples/CPP/7/ADO/ADO.pro 2006-07-18 06:02:12 UTC (rev 446)
@@ -0,0 +1,47 @@
+# #########################################################
+#
+# \brief
+#
+# #########################################################
+
+# #########################################################
+# COMMON
+# #########################################################
+TEMPLATE = app
+TARGET = ADO
+DESTDIR = ../bin
+CONFIG += console
+include( ../common.pri )
+include( ../config.pri )
+include( ../defines.pri )
+include( ../odbc.pri )
+
+# #########################################################
+# WIN
+# #########################################################
+win32 {
+ LIBS += user32.lib
+}
+
+# #########################################################
+# UNIX
+# #########################################################
+unix {
+ LIBS += -L/usr/lib
+}
+
+# #########################################################
+# OSX
+# #########################################################
+mac {
+
+}
+
+# #########################################################
+# FILES
+# #########################################################
+HEADERS = \
+ AppendX.h
+SOURCES = \
+ AppendX.cpp
+
Deleted: trunk/examples/CPP/7/ADO/ADO.sln
===================================================================
--- trunk/examples/CPP/7/ADO/ADO.sln 2006-07-18 05:14:09 UTC (rev 445)
+++ trunk/examples/CPP/7/ADO/ADO.sln 2006-07-18 06:02:12 UTC (rev 446)
@@ -1,21 +0,0 @@
-Microsoft Visual Studio Solution File, Format Version 8.00
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ADO", "ADO.vcproj",
"{7D8448F2-C1F7-46BE-88D1-A7DE7F63D0E7}"
- ProjectSection(ProjectDependencies) = postProject
- EndProjectSection
-EndProject
-Global
- GlobalSection(SolutionConfiguration) = preSolution
- Debug = Debug
- Release = Release
- EndGlobalSection
- GlobalSection(ProjectConfiguration) = postSolution
- {7D8448F2-C1F7-46BE-88D1-A7DE7F63D0E7}.Debug.ActiveCfg = Debug|Win32
- {7D8448F2-C1F7-46BE-88D1-A7DE7F63D0E7}.Debug.Build.0 = Debug|Win32
- {7D8448F2-C1F7-46BE-88D1-A7DE7F63D0E7}.Release.ActiveCfg = Release|Win32
- {7D8448F2-C1F7-46BE-88D1-A7DE7F63D0E7}.Release.Build.0 = Release|Win32
- EndGlobalSection
- GlobalSection(ExtensibilityGlobals) = postSolution
- EndGlobalSection
- GlobalSection(ExtensibilityAddIns) = postSolution
- EndGlobalSection
-EndGlobal
Deleted: trunk/examples/CPP/7/ADO/ADO.suo
===================================================================
(Binary files differ)
Deleted: trunk/examples/CPP/7/ADO/ADO.vcproj
===================================================================
--- trunk/examples/CPP/7/ADO/ADO.vcproj 2006-07-18 05:14:09 UTC (rev 445)
+++ trunk/examples/CPP/7/ADO/ADO.vcproj 2006-07-18 06:02:12 UTC (rev 446)
@@ -1,59 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="7.10"
- Name="ADO"
- ProjectGUID="{7D8448F2-C1F7-46BE-88D1-A7DE7F63D0E7}"
- Keyword="MakeFileProj">
- <Platforms>
- <Platform
- Name="Win32"/>
- </Platforms>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="Debug"
- IntermediateDirectory="Debug"
- ConfigurationType="0">
- <Tool
- Name="VCNMakeTool"
- Output="ADO.exe"/>
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="Release"
- IntermediateDirectory="Release"
- ConfigurationType="0">
- <Tool
- Name="VCNMakeTool"
- Output="ADO.exe"/>
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <Filter
- Name="Source Files"
- Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx"
- UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}">
- <File
- RelativePath=".\AppendX.cpp">
- </File>
- </Filter>
- <Filter
- Name="Header Files"
- Filter="h;hpp;hxx;hm;inl;inc;xsd"
- UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}">
- <File
- RelativePath=".\AppendX.h">
- </File>
- </Filter>
- <Filter
- Name="Resource Files"
- Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx"
- UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}">
- </Filter>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
Modified: trunk/examples/CPP/7/ADO/AppendX.cpp
===================================================================
--- trunk/examples/CPP/7/ADO/AppendX.cpp 2006-07-18 05:14:09 UTC (rev 445)
+++ trunk/examples/CPP/7/ADO/AppendX.cpp 2006-07-18 06:02:12 UTC (rev 446)
@@ -1,7 +1,12 @@
// BeginAppendCpp
-#import "msado15.dll" \
- no_namespace rename("EOF", "EndOfFile")
+//
+// #import "msado15.dll" \
+// no_namespace rename("EOF", "EndOfFile")
+#import "C:\Program Files\Common Files\System\ado\msado15.dll" \
+ no_namespace \
+ rename( "EOF", "EndOfFile")
+
#include <ole2.h>
#include <stdio.h>
#include "conio.h"
@@ -57,8 +62,7 @@
IADORecordBinding *picRs = NULL; //Interface Pointer declared.(VC++ Extensions)
CEmployeeRs emprs; //C++ class object
- _bstr_t strCnn("Provider='sqloledb';Data Source='MySqlServer';"
- "Initial Catalog='pubs';Integrated Security='SSPI';");
+ _bstr_t strCnn("Provider='sqloledb';Data Source='NorthwindMySQL';Initial
Catalog='Northwind';Integrated Security='SSPI';");
_bstr_t strMessage, strAuthorID;
@@ -173,4 +177,5 @@
}
}
}
-// EndAppendCpp
\ No newline at end of file
+// EndAppendCpp
+
Modified: trunk/examples/CPP/7/ADO/AppendX.h
===================================================================
--- trunk/examples/CPP/7/ADO/AppendX.h 2006-07-18 05:14:09 UTC (rev 445)
+++ trunk/examples/CPP/7/ADO/AppendX.h 2006-07-18 06:02:12 UTC (rev 446)
@@ -1,7 +1,6 @@
// BeginAppendH
#include "icrsint.h"
-
//This Class extracts only author id,fname,lastname
class CEmployeeRs : public CADORecordBinding
Added: trunk/examples/CPP/7/ADO/exampleADO.vpj
===================================================================
--- trunk/examples/CPP/7/ADO/exampleADO.vpj 2006-07-18 05:14:09 UTC (rev 445)
+++ trunk/examples/CPP/7/ADO/exampleADO.vpj 2006-07-18 06:02:12 UTC (rev 446)
@@ -0,0 +1,74 @@
+<!DOCTYPE Project SYSTEM "http://www.slickedit.com/dtd/vse/10.0/vpj.dtd">
+<Project
+ Version="10.0"
+ VendorName="SlickEdit"
+ WorkingDir=".">
+ <Config
+ Name="Release"
+ OutputFile=""
+ CompilerConfigName="Latest Version">
+ <Menu>
+ <Target
+ Name="Compile"
+ MenuCaption="&Compile"
+ CaptureOutputWith="ProcessBuffer"
+ SaveOption="SaveCurrent"
+ RunFromDir="%rw">
+ <Exec/>
+ </Target>
+ <Target
+ Name="Build"
+ MenuCaption="&Build"
+ CaptureOutputWith="ProcessBuffer"
+ SaveOption="SaveWorkspaceFiles"
+ RunFromDir="%rw">
+ <Exec CmdLine="make"/>
+ </Target>
+ <Target
+ Name="Rebuild"
+ MenuCaption="&Rebuild"
+ CaptureOutputWith="ProcessBuffer"
+ SaveOption="SaveWorkspaceFiles"
+ RunFromDir="%rw">
+ <Exec/>
+ </Target>
+ <Target
+ Name="Debug"
+ MenuCaption="&Debug"
+ SaveOption="SaveNone"
+ RunFromDir="%rw">
+ <Exec/>
+ </Target>
+ <Target
+ Name="Execute"
+ MenuCaption="E&xecute"
+ SaveOption="SaveNone"
+ RunFromDir="%rw">
+ <Exec CmdLine='"exampleADO.exe"'/>
+ </Target>
+ </Menu>
+ </Config>
+ <Files>
+ <Folder
+ Name="Source Files"
+ Filters="*.c;*.C;*.cc;*.cpp;*.cp;*.cxx;*.prg;*.pas;*.dpr;*.asm;*.s;*.bas;*.java;*.cs;*.sc;*.e;*.cob;*.html;*.rc;*.tcl;*.py;*.pl">
+ <F N="AppendX.cpp"/>
+ </Folder>
+ <Folder
+ Name="Header Files"
+ Filters="*.h;*.H;*.hh;*.hpp;*.hxx;*.inc;*.sh;*.cpy;*.if">
+ <F N="AppendX.h"/>
+ </Folder>
+ <Folder
+ Name="Resource Files"
+ Filters="*.ico;*.cur;*.dlg"/>
+ <Folder
+ Name="Bitmaps"
+ Filters="*.bmp"/>
+ <Folder
+ Name="Other Files"
+ Filters="">
+ <F N="ADO.pro"/>
+ </Folder>
+ </Files>
+</Project>
| Thread |
|---|
| • Connector/ODBC 5 commit: r446 - in trunk: . examples/CPP/7/ADO | pharvey | 18 Jul |