
Visual Basic ActiveX DLLs
Also make sure that any sub or function that you want to be a method
is declared Public.
Same goes for any variables you want to be visible to other programs.
Although I'd recommend using property lets and gets for setting
variables.
Quote:
> Make sure that the Instancing property of the class module is not
set to
> 1-Private, otherwise it will only be accessible to other modules
within that
> same project. For most classes of this sort, you'll want to set the
> Instancing property to 5-MultiUse in order to use it from an ActiveX
dll.
message
> > Hello,
> > Yes again, sorry, I can't figure it out myself.
> > How can I split a module out of a program and create a DLL out of
that
> > module?
> > I have tried copying the code of the module to a Class in an
ActiveX DLL
> > project and then compiling that to a DLL, but when I add the
compiled
> > DLL to the References of my program and use it (as I can see in
the
> > Object browser) in my code I get an error like "Method not found"
or
> > something.
> > What am I doing wrong?
> > Thanx in advance!
> > --
> > Cellphone: 0038631752815
> > Don't feel bad about asking/telling me anything, I will always
gladly
> > reply.
> > Digging for info? Try AI Meta Search:
> > Http://WWW.AIMetaSearch.Com
> > MesonAI -- If nobody else wants to do it, why shouldn't we?(TM)
> > Http://WWW.MesonAI.Com