Link to home
Start Free TrialLog in
Avatar of learn
learn

asked on

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?
Avatar of Vbmaster
Vbmaster

Maybe 'cause sometimes we want to distribute a control/dll without giving the source code to the user? ;)
Avatar of learn

ASKER

Hi Vbmaster,

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

Cheers.
ASKER CERTIFIED SOLUTION
Avatar of Davy070599
Davy070599

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of learn

ASKER

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.....
Avatar of learn

ASKER

To  Davy:

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

Cheers.
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'





Avatar of learn

ASKER

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.
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...
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...
Avatar of learn

ASKER

Hi Davy,

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