You are here:

C++/OLE DB Connectivity in C++

Advertisement


Question
David,

Hello.  I am struggling to find an example of using OLE DB to connect to a database in VC++ 6.0.  Do you have an example of how to do this, or know where I could go to look?  I am looking for just a simple example of making a connection and returning a resultset.

Thank you,

Joshua

Answer
Joshua, Thank you for your question.

Unfortunately, I have not done DB programming using Visual C++, so I can't help.

I suggest that you post this question at www.experts-exchange.com, which is more advanced than allexperts.com.

Also, you can search Microsoft's MSDN Library at http://search.microsoft.com/us/dev/default.asp.

David Spector

C++

All Answers


Answers by Expert:


Ask Experts

Volunteer


David Spector

Expertise

Highly knowledgeable in the C++ language, Visual C++ (MSVC), Windows API, documentation and other quality-assurance techniques, and debugging. Knowledgeable in MFC, COM, GUI design, and object-oriented design.

Experience

I have been a software engineer since 1965. I have been published. My specializations have been: biomedical programming, compiler implementation, and many kinds of Windows programming. I don't do Databases or other business-oriented stuff.

Publications
Windows?/DOS Developer's Journal, ACM SIGPLAN Notices, and Computer Science Press.

Education/Credentials
ICCP Systems Programming Certification
Master's degree equivalent in Computer Science

©2016 About.com. All rights reserved.