Solved

Accessing Classes in a dll

Posted on 1998-10-30
1
134 Views
Last Modified: 2010-04-30
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
Comment
Question by:pantlord
1 Comment
 
LVL 13

Accepted Solution

by:
Mirkwood earned 50 total points
ID: 1442514
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now