Link to home
Start Free TrialLog in
Avatar of paulwhelan
paulwhelan

asked on

Why use COM?

Hi
Newbie question.
I'm just looking at COM/DLL (is it right to assume they're the same?)
And Im using this code in my ASP

CreateObject("Projectname.Classname")

My question is -
Why use COM at all?
Is it faster?
And when should it be used?

Thanks
Paul
Avatar of paulwhelan
paulwhelan

ASKER

Im doing a bit of reading and it seems that COM is used for 'dynamic object creation'.

Is it fair to say its used to enable Object Oriented Programming?

Thanks
Paul
It partially supports object orient programming.
Avatar of Carl Tawn
COM objects are essentially reusable components (a bit like assemblies under .Net). COM itself is simply the specification that dictates the mechanisms for communicating between components. They have lots of uses, I have used them in the past for web applications to seperate the code into logical tiers. Also, because they are compiled, they are faster than trying to perform the same tasks in ASP for example.
Cheers guys
So a main advantage would be speed.
And also that they can support oop.
Anything else?
Thanks
Paul
ASKER CERTIFIED SOLUTION
Avatar of Carl Tawn
Carl Tawn
Flag of United Kingdom of Great Britain and Northern Ireland image

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