
Exporting VB ActiveX Dlls
Quote:
> Hello Everyone,
> I wish to create an ActiveX Dll in VB and then use it in another VB
program
> without reference it.
If you create a public class called "MyClass" and compile it in a project
called "MyDLL", then you can create an instance of it in another VB program
without adding a reference by:
Dim myclass As Object
Set myclass = CreateObject("MyDLL.MyClass")
Note the dll does have to be registered on the machine.
Quote:
> Basically, is there anyway I can export the VB Dll so
> that other programs, such as VB or VC++ programs can use it? I heard that
> www.desaware.com has SpyWorks that will do this, but is there anything
> equivalent to this? Thanks a lot.
If you mean export the functions from a standard dll, then yes, you need
something like SpyWorks.
Quote: