Accessing a database using visual c++ and OLEDB

主宰稳场 提交于 2019-12-24 11:51:46

问题


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.

I really appreciate your help.

Best, Shadi.


回答1:


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.



来源:https://stackoverflow.com/questions/2648163/accessing-a-database-using-visual-c-and-oledb

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!