使用Visual C ++和OLEDB访问数据库 [英] Accessing a database using visual c++ and OLEDB

查看:78
本文介绍了使用Visual C ++和OLEDB访问数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人有使用Visual C ++和OLEDB处理数据库的示例吗?我应该在代码之上包括什么? 我已经搜索了互联网,大多数示例都使用C#或VB.用C ++编写的示例通常不完整.

Does anybody have an example of working with database using Visual C++ and OLEDB? What should I include on top of my code? I have searched the internet and most examples are using C# or VB. Examples written by C++ are usually not complete.

非常感谢您的帮助.

最好, 沙迪.

推荐答案

您可能想使用ADO来做到这一点.从C/C ++直接将代码编写到OLE DB是相当繁琐的工作(轻描淡写).如果您用Google搜索c++ ado,则会有很多匹配.前两个是这是在Codeguru上,在编码器源上一个..他们俩看起来都是很好的例子.

You probably want to use ADO to do this. Writing code directly to OLE DB from C/C++ is a fair bit of work (understatement). If you google for c++ ado, there are a number of hits. The top two are this one on codeguru and one on codersource. They both look like good examples.

这篇关于使用Visual C ++和OLEDB访问数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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