brianb/mdbtools — pull request #62 by jimmytaker (2014-12-22 20:08:02+00:00)
Title: Adaptation for Windows; Blob limit fix; Date format options; Qt pro file

Hi,
Did you miss me?
We have been internally using this library to port access to sqlite for 2 years now on both windows and mac. It has proven to be good.
Only a couple of weeks ago, did we encounter a problem. We had an access db with a 25 MB blob in it and the library could not handle it - it returned 0. Since we never bothered to rebuild for 2 years, I figured the problem might have been found and fixed in the meantime. So I went through all the trouble again to adapt the files to compile on Windows - thank you very much for ignoring me the first time, when I offered the adaptations to you.
Well, the BLOB problem was not fixed. So I fixed it. The lib can now process up to 256 MB Blobs and if I am correct changing 0xf000000 to 0x3000000 will allow up to 1 GB (have not tested with anything > 25 MB Blobs). Since I had already adapted the current version to Windows, here it is as well. Note that my changes do not alter the behavior in any way. The reason why void* became char* is that it does not compile with VC++ otherwise. The constructor hack is not ugly - I find it an ingenious way of handholding the compiler and leading it through creating a constructor for C. Btw. why C and not C++? You can keep mdbtools.h in C if you need it to be usable from a C program and still build everything comfortably with C++ in the source files. It all results in the same machine code after compilation anyway...
We are planning a commercial release next year of a product based on Qt that will run on both Windows and Mac OS X that will incorporate libmdb.
I certainly hope in the past 2 years you have moved away from that linux/gnuc only mentality and will now welcome the prepared VS 2012 and Qt projects that make building the library a breeze on both Windows and Mac.
Happy holiday!
JT