form and Class vs ActiveX

Creating or using a form is esier and faster than an ActiveX Control;
Creating or using a class is esier and faster than an ActiveX DLL;
We can reuse a form or a class and they can do almost all the ActiveX Control and DLL can do; (are there forms or classes in the market?)
Why we need ActiveX Control and DLL?
learnAsked:
Who is Participating?
 
Davy070599Connect With a Mentor Commented:
Hi,

But you can't use your class in another language and that's why we have activex.  You can create a dll in Visual C++ and then you can easily use it in your vb application.

Byeee...
0
 
VbmasterCommented:
Maybe 'cause sometimes we want to distribute a control/dll without giving the source code to the user? ;)
0
 
learnAuthor Commented:
Hi Vbmaster,

You might be right.....why not keep the feature of saving the form file as binary (VB3)?

Cheers.
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
learnAuthor Commented:
To  Davy:

Can an ActiveX DLL be used by other language? I remember the DLL created by VB can not be used in VB by "declare lib..." like using a C DLL.....
0
 
learnAuthor Commented:
To  Davy:

Sorry, I meant can a VB ActiveX DLL be used by other language?

Cheers.
0
 
Davy070599Commented:
I've never done tried it myself, but that's what all that ActiveX stuff is about.  It's a container that makes it possible to use a component that's written in another language to use it in your language.  

I don't realy understand the "declare lib..." thing.

If you want to use a vb dll in another vb application, you just have to add the 'reference' of that component.  In  your code you add then something like:

Dim 'objname' as new 'classname'





0
 
learnAuthor Commented:
To Davy :

>If you want to use a vb dll in another vb application, ....

I think a easier way to do so is: copy the class to another vb application....then you can do all things you can do by using ActivX DLL.
0
 
Davy070599Commented:
Hi,

That only works if you wrote it yourself.  If somebody else wrote it and you don't have the sourcode, you'll have to do it my way.

Byeee...
0
 
Davy070599Commented:
Hi,

That only works if you wrote it yourself.  If somebody else wrote it and you don't have the sourcode, you'll have to do it my way.

Byeee...
0
 
learnAuthor Commented:
Hi Davy,

Yes....but if he pay me, I can send him my class :-)
0
All Courses

From novice to tech pro — start learning today.