MFC and embedded databases?
Can you recommend good embedded databases with Visual C++开发者_高级运维/MFC?
I've looked at: - SQLite - HamsterDB
Any others?
Have a look around on codeproject.com for MFC-esque wrappers around sqlite. There are quite a number of good ones. The sqlite website has links to c++ wrappers, too.
I would use SQL Server Compact Edition plus ATL OLE DB Consumer Templates (you can use them with MFC).
This is an interesting link: http://www.codeproject.com/KB/windows/atl_ole_db_ppc.aspx
You have to use this OLE DB provider: http://msdn.microsoft.com/en-us/library/ms174142(SQL.100).aspx
i'm the author of hamsterdb.
To answer your question - it depends.
sqlite offers more functionality, but is slower.
hamsterdb (or tokyo cabinet, or berkeleydb) are faster but have less functionality.
if you give a better description of your use case then i can help better.
bye Christoph
Windows has an embedded database enginge (no query engine, a low level API like HamsterDB).
Link
精彩评论