[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 142
  • Last Modified:

Accessing Classes in a dll

I've written a dll (in C++) which contains a single class with many methods.  I know I can access FUNCTIONS from a dll in a VB app using 'Declare', but is there a way I can access a CLASS in a dll?
0
pantlord
Asked:
pantlord
1 Solution
 
MirkwoodCommented:
Only by making it a com class and describing the class using IDL. Create a ATL project and see how IDL's work.

When you reference a DLL that has com classes it will show them in the object browser in VB. (Press F2)
0

Featured Post

2018 Annual Membership Survey

Here at Experts Exchange, we strive to give members the best experience. Help us improve the site by taking this survey today! (Bonus: Be entered to win a great tech prize for participating!)

Tackle projects and never again get stuck behind a technical roadblock.
Join Now