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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

#import ADO using progid

Status
Not open for further replies.

phinoppix

Programmer
Jul 24, 2002
437
US
Hi,
I'm just starting to learn c++ and am having some trouble with ADO. MSDN says I can #import "progid:ADODB.Recordset" if I don't want to use the dll file or libid. But can't make it work.

I have this working (ADO 2.5):
Code:
#import "libid:00000205-0000-0010-8000-00AA006D2EA4" rename("EOF", "EndOfFile")

but doing:
Code:
#import "progid:ADODB.Connection"
doesn't work.

from output window:
Code:
d:\~phinoppix\_app\phinoppixter\mfc_lessons\mfc_02\FrmTestAdo.h(5) : error C3501: there is no typelib registered for ProgID 'ADODB.Connection'
d:\~phinoppix\_app\phinoppixter\mfc_lessons\mfc_02\FrmTestAdo.h(5) : fatal error C1103: fatal error importing progid: 'ADODB.Connection'

Any help?

PS. The #import with libid does not work on my 2nd machine. But am sure ADO is installed.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top