Search found 21 matches

by manyleaves
Tue Apr 15, 2014 6:26 am
Forum: wxCode
Topic: Reviving DatabaseLayer
Replies: 73
Views: 24512

Re: Reviving DatabaseLayer

Stefano I just cloned a fresh copy of wxDatabase from your git and it seems that the samples folder is missing. I haven't done any new work since I posted wxDatabase.rar to the forum on 8 Oct 2013 - so the samples folder therein is still my latest. Did you get anywhere with the bakefiles? Andrew PS:...
by manyleaves
Wed Feb 19, 2014 8:32 am
Forum: wxCode
Topic: Reviving DatabaseLayer
Replies: 73
Views: 24512

Re: Reviving DatabaseLayer

Stefano Thanks for pushing wxDatabase onto GitHub. I've never used GitHub but always meant to so it will be a learning curve for me. I've got much else to share! I noticed that your README doesn't mention the TDS support which may be very important for some users (like me). How does one go about edi...
by manyleaves
Wed Feb 19, 2014 8:03 am
Forum: wxCode
Topic: Reviving DatabaseLayer
Replies: 73
Views: 24512

Re: Reviving DatabaseLayer

A single backend per config file/stream is certainly the simplest means of using GetDatabase(). When I get more time to look at this again I'll add the optional "path" argument to GetDatabase() because in some usage cases it may make sense to consider the config as a set of related databases that th...
by manyleaves
Tue Feb 18, 2014 12:34 am
Forum: wxCode
Topic: Reviving DatabaseLayer
Replies: 73
Views: 24512

Re: Reviving DatabaseLayer

Stefano I have now opened a GitHub account: @manyleaves. When I designed GetDatabase() the "config" (whether streamed from a file or inline string) was meant to represent some sort of fallback sequence. Eg return the primary database and if that fails the backup etc... . I didn't have in mind it wor...
by manyleaves
Tue Feb 11, 2014 12:17 am
Forum: wxCode
Topic: Reviving DatabaseLayer
Replies: 73
Views: 24512

Re: Reviving DatabaseLayer

1. Exceptions? We probably don't need them but this implies that we must go through all the code wrapped by try/catch and make sure we can strictly rely on return values and associated error messages. We need to pay particular attention to the behaviour of the underlying drivers. Do they all return ...
by manyleaves
Tue Oct 08, 2013 12:18 am
Forum: wxCode
Topic: Reviving DatabaseLayer
Replies: 73
Views: 24512

Re: Reviving DatabaseLayer

My apologies ... an 8 year old on school holidays doesn't do wonders for your concentration ...
by manyleaves
Fri Oct 04, 2013 5:44 am
Forum: wxCode
Topic: Reviving DatabaseLayer
Replies: 73
Views: 24512

Re: Reviving DatabaseLayer

evstevemd and Sam FYI: The original wxDatabase version I started this all from was dated 14th August 2013. I'm pleased you got the DLL Debug and DLL Release builds to compile via VC++ 2010 Express. I always compile with DLL builds so I had neglected to make sure that the (non DLL) Debug and Release ...
by manyleaves
Sat Sep 28, 2013 8:04 am
Forum: wxCode
Topic: Reviving DatabaseLayer
Replies: 73
Views: 24512

Re: Reviving DatabaseLayer

evstevemd and Sam If either of you have downloaded and installed VC++ 2010 Express I'm simply suggesting that you open up (and build) the solution files (*.sln) directly with VC++. Whether you intend to compile with VC++ in the future or not this should give you a working reference to compare agains...
by manyleaves
Fri Sep 27, 2013 8:06 am
Forum: wxCode
Topic: Reviving DatabaseLayer
Replies: 73
Views: 24512

Re: Reviving DatabaseLayer

Sam My apologies for the confusion. The "DbType" entry is one I introduced for ODBC conenctions. It is for the benefit of "tests.cpp" and should simply reflect the corresponding SQL "dialect" used by the target database. MS Access seems to use the same SQL syntax as MS Sql Server so DbType should be...
by manyleaves
Wed Sep 18, 2013 8:04 am
Forum: wxCode
Topic: Reviving DatabaseLayer
Replies: 73
Views: 24512

Re: Reviving DatabaseLayer

Sam Thanks for your prompt feedback too! Please enhance testEncodingSupport in any way you see fit. Personally I'd ike it that test.dat (the input stream for testEncodingSupport) can contain any number Asian or other characters and the test indicate what does or doesn't seem to be supported. Silly w...
by manyleaves
Wed Sep 18, 2013 3:56 am
Forum: wxCode
Topic: Reviving DatabaseLayer
Replies: 73
Views: 24512

Re: Reviving DatabaseLayer

Sam Many thanks for your help fixing up Asian character support. I've attached an updated wxDatabase.rar which 1. Incorporates the stringconverter/odbc_resultset fixes you mentioned in your previous post. Please check I've done it correctly. 2. Properly supports SQLITE built via a $(SQLITE) environm...
by manyleaves
Mon Sep 16, 2013 12:12 am
Forum: wxCode
Topic: Reviving DatabaseLayer
Replies: 73
Views: 24512

Re: Reviving DatabaseLayer

Sam _ASSERTE and _CrtCheckMemory() are defined in "crtdbg.h". Perhaps this is only supported by VC++. In the "wxprec.h" include files I've enabled C-runtime memory checking. I suggest you change #ifdef _DEBUG #include <crtdbg.h> #define debug_normal_new new(_NORMAL_BLOCK ,__FILE__, __LINE__) #define...
by manyleaves
Mon Aug 26, 2013 6:08 am
Forum: wxCode
Topic: Reviving DatabaseLayer
Replies: 73
Views: 24512

Re: Reviving DatabaseLayer

samsam598 I've just spent several hours investigating your ODBC to MS Access problems. I can certainly replicate the issues you described a few posts back. I haven't been able to fully fix the problem but I've gone some way towards understanding it ... it needs someone else more experienced with enc...
by manyleaves
Fri Aug 23, 2013 2:36 am
Forum: wxCode
Topic: Reviving DatabaseLayer
Replies: 73
Views: 24512

Re: Reviving DatabaseLayer

After my previous upload I ran the "config" tests using a different ODBC connection string. The connection string in that upload fails. Because wxDatabaseConfig keeps open multiple prepared statements, the DRIVER used by ODBC must be able to support a MARS connection. So for a MS SQL Server 2008 dat...
by manyleaves
Thu Aug 22, 2013 12:39 am
Forum: wxCode
Topic: Reviving DatabaseLayer
Replies: 73
Views: 24512

Re: Reviving DatabaseLayer

evstevemd FYI: TDS stands for Tabular Data Stream and is the internal streaming format used by Sybase, MS SQL Server and its variants. Please find attached my restructured wxDatabase and wxDatabaseConfig. In the samples folder you will find projects that run unit tests for both wxDatabase and wxData...