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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.