• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 237
  • Last Modified:

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
0
paulwhelan
Asked:
paulwhelan
  • 2
  • 2
1 Solution
 
paulwhelanAuthor Commented:
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
0
 
pradapkumarCommented:
It partially supports object orient programming.
0
 
Carl TawnSystems and Integration DeveloperCommented:
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.
0
 
paulwhelanAuthor Commented:
Cheers guys
So a main advantage would be speed.
And also that they can support oop.
Anything else?
Thanks
Paul
0
 
Carl TawnSystems and Integration DeveloperCommented:
Cross lanuage support, a COM component written in C++ can be used by an app written in any other language that support COM components. COM components can also be run under a different process and can enable asynchronous processing. And COM components can be used across machine boundaries.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now