Added a #define for wxODBC_BACKWARD_COMPATABILITY

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7110 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
George Tasker
2000-04-11 01:48:17 +00:00
parent d096e52c4e
commit df9b4349d5
7 changed files with 78 additions and 29 deletions

View File

@@ -262,17 +262,27 @@
// Set this to 0 if your compiler can't cope // Set this to 0 if your compiler can't cope
// with omission of prototype parameters. // with omission of prototype parameters.
#define wxUSE_ODBC 1 #define wxUSE_ODBC 1
// Define 1 to use ODBC classes // Define 1 to use ODBC classes
#define wxODBC_FWD_ONLY_CURSORS 1 #define wxODBC_FWD_ONLY_CURSORS 1
// Some databases/ODBC drivers only allow forward scrolling cursors. // For backward compatibility reasons, this parameter now only
// Unless you specifically want to use backward scrolling // controls the default scrolling method used by cursors. This
// cursors, and you know that all of the databases/ODBC drivers // default behavior can be overriden by setting the second param
// that you will use these odbc classes with allow backward // of wxDB::GetDbConnection() to indicate whether the connection
// scrolling cursors, this setting should remain set to 1 // (and any wxTable()s that use the connection) should support
// for maximum database/driver compatibilty // forward only scrolling of cursors, or both forward and backward
// Support for backward scrolling cursors is dependent on the
// data source as well as the ODBC driver being used.
#define wxODBC_BACKWARD_COMPATABILITY 0
// Default is 0. Set to 1 to use the deprecated classes, enum
// types, function, member variables. With a setting of 1, full
// backward compatability with the 2.0.x release is possible.
// It is STRONGLY recommended that this be set to 0, as
// future development will be done only on the non-deprecated
// functions/classes/member variables/etc.

View File

@@ -505,6 +505,14 @@
// Support for backward scrolling cursors is dependent on the // Support for backward scrolling cursors is dependent on the
// data source as well as the ODBC driver being used. // data source as well as the ODBC driver being used.
#define wxODBC_BACKWARD_COMPATABILITY 0
// Default is 0. Set to 1 to use the deprecated classes, enum
// types, function, member variables. With a setting of 1, full
// backward compatability with the 2.0.x release is possible.
// It is STRONGLY recommended that this be set to 0, as
// future development will be done only on the non-deprecated
// functions/classes/member variables/etc.
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// other compiler (mis)features // other compiler (mis)features
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------

View File

@@ -167,13 +167,23 @@
#define wxUSE_ODBC 1 #define wxUSE_ODBC 1
// Define 1 to use ODBC classes // Define 1 to use ODBC classes
#define wxODBC_FWD_ONLY_CURSORS 1 #define wxODBC_FWD_ONLY_CURSORS 1
// Some databases/ODBC drivers only allow forward scrolling cursors. // For backward compatibility reasons, this parameter now only
// Unless you specifically want to use backward scrolling // controls the default scrolling method used by cursors. This
// cursors, and you know that all of the databases/ODBC drivers // default behavior can be overriden by setting the second param
// that you will use these odbc classes with allow backward // of wxDB::GetDbConnection() to indicate whether the connection
// scrolling cursors, this setting should remain set to 1 // (and any wxTable()s that use the connection) should support
// for maximum database/driver compatibilty // forward only scrolling of cursors, or both forward and backward
// Support for backward scrolling cursors is dependent on the
// data source as well as the ODBC driver being used.
#define wxODBC_BACKWARD_COMPATABILITY 0
// Default is 0. Set to 1 to use the deprecated classes, enum
// types, function, member variables. With a setting of 1, full
// backward compatability with the 2.0.x release is possible.
// It is STRONGLY recommended that this be set to 0, as
// future development will be done only on the non-deprecated
// functions/classes/member variables/etc.
#define wxUSE_IOSTREAMH 1 #define wxUSE_IOSTREAMH 1
// VC++ 4.2 and above allows <iostream> and <iostream.h> // VC++ 4.2 and above allows <iostream> and <iostream.h>

View File

@@ -167,13 +167,23 @@
#define wxUSE_ODBC 1 #define wxUSE_ODBC 1
// Define 1 to use ODBC classes // Define 1 to use ODBC classes
#define wxODBC_FWD_ONLY_CURSORS 1 #define wxODBC_FWD_ONLY_CURSORS 1
// Some databases/ODBC drivers only allow forward scrolling cursors. // For backward compatibility reasons, this parameter now only
// Unless you specifically want to use backward scrolling // controls the default scrolling method used by cursors. This
// cursors, and you know that all of the databases/ODBC drivers // default behavior can be overriden by setting the second param
// that you will use these odbc classes with allow backward // of wxDB::GetDbConnection() to indicate whether the connection
// scrolling cursors, this setting should remain set to 1 // (and any wxTable()s that use the connection) should support
// for maximum database/driver compatibilty // forward only scrolling of cursors, or both forward and backward
// Support for backward scrolling cursors is dependent on the
// data source as well as the ODBC driver being used.
#define wxODBC_BACKWARD_COMPATABILITY 0
// Default is 0. Set to 1 to use the deprecated classes, enum
// types, function, member variables. With a setting of 1, full
// backward compatability with the 2.0.x release is possible.
// It is STRONGLY recommended that this be set to 0, as
// future development will be done only on the non-deprecated
// functions/classes/member variables/etc.
#define wxUSE_IOSTREAMH 1 #define wxUSE_IOSTREAMH 1
// VC++ 4.2 and above allows <iostream> and <iostream.h> // VC++ 4.2 and above allows <iostream> and <iostream.h>

View File

@@ -103,13 +103,22 @@
// Define 1 to use ODBC classes // Define 1 to use ODBC classes
#define wxODBC_FWD_ONLY_CURSORS 1 #define wxODBC_FWD_ONLY_CURSORS 1
// Some databases/ODBC drivers only allow forward scrolling cursors. // For backward compatibility reasons, this parameter now only
// Unless you specifically want to use backward scrolling // controls the default scrolling method used by cursors. This
// cursors, and you know that all of the databases/ODBC drivers // default behavior can be overriden by setting the second param
// that you will use these odbc classes with allow backward // of wxDB::GetDbConnection() to indicate whether the connection
// scrolling cursors, this setting should remain set to 1 // (and any wxTable()s that use the connection) should support
// for maximum database/driver compatibilty // forward only scrolling of cursors, or both forward and backward
// Support for backward scrolling cursors is dependent on the
// data source as well as the ODBC driver being used.
#define wxODBC_BACKWARD_COMPATABILITY 0
// Default is 0. Set to 1 to use the deprecated classes, enum
// types, function, member variables. With a setting of 1, full
// backward compatability with the 2.0.x release is possible.
// It is STRONGLY recommended that this be set to 0, as
// future development will be done only on the non-deprecated
// functions/classes/member variables/etc.
#define wxUSE_IOSTREAMH 1 #define wxUSE_IOSTREAMH 1
// VC++ 4.2 and above allows <iostream> and <iostream.h> // VC++ 4.2 and above allows <iostream> and <iostream.h>

View File

@@ -141,6 +141,7 @@
*/ */
#define wxUSE_ODBC 0 #define wxUSE_ODBC 0
#define wxODBC_FWD_ONLY_CURSORS 1 #define wxODBC_FWD_ONLY_CURSORS 1
#define wxODBC_BACKWARD_COMPATABILITY 1
/* /*
* Use Threads * Use Threads
*/ */

View File

@@ -138,6 +138,7 @@
*/ */
#define wxUSE_ODBC 0 #define wxUSE_ODBC 0
#define wxODBC_FWD_ONLY_CURSORS 1 #define wxODBC_FWD_ONLY_CURSORS 1
#define wxODBC_BACKWARD_COMPATABILITY 1
/* /*
* Use Threads * Use Threads
*/ */