Browse DevX
Sign up for e-mail newsletters from DevX

Tip of the Day
Language: Visual Basic
Expertise: Intermediate
Nov 4, 1999



Building the Right Environment to Support AI, Machine Learning and Deep Learning

Expose Multiuse Classes in ActiveX Control Projects

A lesser-known, new feature in VB6 is the ability to have MultiUse and GlobalMultiUse classes within an ActiveX control project. This is useful if you have ActiveX controls and creatable classes you want to expose from the same project. There was no way to do this in VB5. In VB6, it's as easy as adding a class module to your ActiveX control project. Unfortunately, there's no way to do the converse; you can't have a public user control in an ActiveX DLL project. So, if you want creatable classes and public user controls in the same project, you have to make it an ActiveX Control project. If you prefer your component to be a DLL instead of an OCX, just rename the file; internally, an OCX is the same as a DLL.
Russell Davis
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date