且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用C ++连接数据并将其插入MS Access表

更新时间:2023-01-31 07:37:26

您有很多选择: ADO / RDO DAO ODBC OLE DB ,仅举几例。 DAO已正式弃用。 ADO / RDO尚未正式发布,但MS似乎也不太在乎它们。但是,对于VC 6,过时几乎是生活中的事实。我相信他们在VS 2008下仍然至少在某种程度上得到了支持,但是例如,它们不再包括任何使用DAO的向导。

You have (far too) many choices: ADO/RDO, DAO, ODBC, and OLE DB, to name only a few. DAO is officially deprecated. ADO/RDO aren't officially, but MS doesn't seem to care much about them anymore either. With VC 6, however, obsolescent is pretty much a fact of life. I believe they're all still supported to at least some degree under VS 2008, but they no longer, for example, include any wizards to help with using DAO.

基本上,将OLE DB和ODBC留为您的第一个选择。 MS仍在积极支持和开发它们,而其他MS则不太可能提供任何主要优势。

That basically leaves OLE DB and ODBC as your first couple of choices. MS is still actively supporting and developing them, and the others are unlikely to provide any major advantage anyway.

我应该补充一点,VC ++ 6.0提供了VS2008缺少的许多功能用于编写使用数据库的应用程序。您可能想看看我在上一个问题以寻求指导。

I should add that VC++ 6.0 provides quite a few features missing from VS2008 for writing applications that use databases. You might want to look at what I showed in a previous question for some guidance.