正常工作的VC ++ OLEDB连接示例? [英] Working VC++ OLEDB connection example?

查看:54
本文介绍了正常工作的VC ++ OLEDB连接示例?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨.我想从Access数据库(.accdb)中获取数据.有没有人真的有一个简单的工作示例,可以使用C ++在VS2008中创建该OLEDB连接?到目前为止,我已经完成了谷歌搜索工作:在网络上浏览了很多示例,但是到目前为止,我还没有找到任何真正可以工作的示例.在此先感谢..

-Mike

Hi. I want to get data from Access database (.accdb). Does anyone has really one simple WORKING example for creating that OLEDB connection in VS2008 by using C++? I have done my googling work so far: gone through a lot of examples in web, but so far, I have not found any example which would be really WORKING. Thanks in advance ..

-Mike

推荐答案

在social.msdn.microsoft.com上查看此线程:
连接Visual Studio 2008以访问2007数据库 [ ^ ]


如果您还没有看到它,请在MSDN上使用Access 2010进行数据编程 [ ^ ]也是了解如何做这个.


http://connectionstrings.com [
Check out this thread on social.msdn.microsoft.com:
connecting visual studio 2008 to access 2007 database[^]


If you haven''t seen it yet, Data Programming with Access 2010 on MSDN[^] is also a great way to understand how to do this.


http://connectionstrings.com[^] is also a great resource for troubleshooting your connection strings.


这里是:
Here it is:Using ADO from C++[^]
This is a working sample of Database access via ADO (i.e. with Access, SQL Server). Though, you will need to add some methods to complete it.
It relies on OLEDB (if this is important to you). This is never as simple in native C++ as in managed languages.


以及一些有用的附加链接:
-
数据访问(如何在Visual C ++中实现) [ ^ ]
- http://www.caspercomsci.com/pages/visualcplussource.htm#10 [ ^ ]
-使用本机C或C ++开发Access 2007解决方案 [ ^ ]
And few additional links that may be useful:
- Data Access (How Do I in Visual C++)[^]
- http://www.caspercomsci.com/pages/visualcplussource.htm#10[^]
- Developing Access 2007 Solutions with Native C or C++[^]


这篇关于正常工作的VC ++ OLEDB连接示例?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆