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!

I'm trying to use a MFC DLL to acce

Status
Not open for further replies.

JoshClark

Programmer
Feb 6, 2001
4
US
I'm trying to use a MFC DLL to access VB COM objects in order to white-box test them. The COMs are middleware between a web front-end application and a MSSQL7 database, so the VB references ADO to make the database calls. When I build my DLL in Visual C++, I get declaration errors because it doesn't recognize the types associated with the data connection (_Connection, _RecordSetPtr, etc). I tried importing the ADO type libraries before the COM objects, with no effect on the errors. What typelib do I need to reference and how do I make the call in order to get my C++ project to recognize the ADO types before trying to use them when it imports the COM objects?
 
You might have to use the raw interface pointers as parameters types maybe even IUnknown and then build your smartpointer instances from them.

You might find more knowledge of this issue in the VB forums with this question.

Good luck
-pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top