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!

ActiveX DLL - Making encapsulated objects known to other programs

Status
Not open for further replies.

BlackKnight

Programmer
Oct 18, 2000
348
US
Hi folks,

How do you make the objects encapsulated in an ActiveX DLL available for other programs to use?

Have a good one!
BK [sig][/sig]
 
To use a DLL object from outside the component, all you have to do is set the Instancing property of the classes to a setting other than Private. The other settings give the class various types of behavior, but as long the class isn't Private, it can be accessed from outside the DLL.

In order to use the DLL in another VB app, you need to go to the references window in the VB app. Your DLL should be in the references list (listed by its project name, not file name). Check the component in the list, click OK, and you can use the DLL.

Have fun!

Steve

[sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top