tags:

views:

481

answers:

2

I need to access the data contained in a dbf file in COM/C++ application (created via ATL). How would I do that?

I've been reading tons of msdn articles very instructive about the OLE-DB provider-consumer model. However, what I need now is a quick tutorial or code sample.

Note: I am by no means no expert in COM/ATL programming :)

Thanks in advande.

A: 

I found this old Tutorial in Code Project but it fits my needs by now.

http://www.codeproject.com/KB/database/oledbconsumer1.aspx

Thanks anyway!

Toto
+1  A: 

I would use ADO; it's by far the quickest way to get going, even with dealing with the COM aspects of it. Start here. It's much easier than rolling your own Consumer implementation, unless you really need to lower-level access that doing OLEDB directly provides.

Nick