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

Calling Functions from a DLL in C++

Status
Not open for further replies.

TheMillionDollarMan

Programmer
Jun 10, 2002
132
US
Hi,

I am using a DLL that was written in C++ for an application written in VB.

Now I want to write my application in C++. I consider myself a good beginner of C++. I have a few database applications that are nice lean (Using ADO) and fast that use some nice controls (like CTreeCtrl etc..)

So now how do I use call the functions of a DLL in C++?

Thanks
 
Use CoCreateInstance to create an instance of the interface on the dll you want to use. THe methods will then be accessible through this interface. The dll should have documentation on what interfaces/methods it exposes.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top