Visual Basic ActiveX DLLs 
Author Message
 Visual Basic ActiveX DLLs

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.*-*-*.com/

MesonAI -- If nobody else wants to do it, why shouldn't we?(TM)
http://www.*-*-*.com/



Fri, 02 Jul 2004 02:43:59 GMT  
 Visual Basic ActiveX DLLs
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.



Quote:
> 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



Fri, 02 Jul 2004 05:19:44 GMT  
 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



Fri, 02 Jul 2004 09:32:09 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Help with Visual Basic ActiveX DLL showing form within Visual C++ app

2. Help with Visual Basic ActiveX DLL showing form within Visual C++ ATL app

3. Retain Class ID and Interface ID of ActiveX dll created in Visual Basic

4. Create ActiveX dll With visual basic...

5. ActiveX created in Visual C++ 6 gives problems in Visual Basic 6

6. adapting Visual C++ dll for Visual Basic

7. Calling Visual Basic DLL from Visual Objects

8. How do you call a Visual C++ (DLL) function from Visual Basic

9. Calling Visual C++-dll from Visual Basic

10. Calling Visual C++ 5.0 DLL Functions From Visual Basic 5.0

11. Visual C++ DLL in Visual Basic

12. Visual Basic and Visual C++ DLL with array of structures

 

 
Powered by phpBB® Forum Software