I wrote a class to abstract the database access for Microsoft C++ using their COM object. It is supposed to work with any ODBC compliant database. In the example it reads from a local Access database or a SQLServer database via a 'DSN-less' connection. This means you don't have to create a DSN on each computer you wish to run the program, important for large-scale deployments. Something to remember is that the DSN string is stored in the binary 'in the clear' and can be viewed with notepad or equivelent. Also on my code site I have a program to obscure the string, you can find it here: hideinfo. The code and this readme can be downloaded as a single zip file here: testdb.zip.