Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

C++ & ADO 1

Status
Not open for further replies.

bcpalmer60

Programmer
Nov 10, 2000
1
US
I'm a VB programmer, and am trying to help a C++ programmer use ADO. He is an expert embedded programmer, but has not used COM before. He has read a lot of books, and it appears that what we can do in VB in one line takes dozens of lines of code in C++. This just doesn't seem right - is my friend doing something wrong?

For example, in VB, you simply add are reference to the ADO library, then declare two variables, one as an ADO.Connection, another as an ADO.recordset. Then you simply open the recordset. However in C++, he claims you can't do this. He is forced to do all kinds of weird stuff, like creating his own object/class, one for each recordset he wants to create, and then working with that class, which does the interface to the actual ADO object.

Tell me it ain't so! B-( Even better - can you point me to some documentation that I can show my friend to point him in the correct direction...

Brian Palmer, Arvada, CO.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top