Solved

COM overview

Posted on 2006-11-07
10
299 Views
Last Modified: 2013-11-25
Experts,

I am doing some self study and need your help. I am NOT a programmer, but am interested in learning how it all comes together. All that mentioned I need an identifiable explanation as I have read several sites, but am looking for simpler explanation so I can better interpret those articles.

What is a COM object?
 How are they utilized?
How do they work?

I would greatly appreciate real life examples to help relate to your explanation.



0
Comment
Question by:link334
  • 3
  • 3
  • 2
  • +2
10 Comments
 
LVL 10

Expert Comment

by:Kinger247
Comment Utility
Basically COM (Component Object Model) is a binary programming standard. It enables you to build reusable 'binary compatible' software.

Don't want to waffle on here, so heres a link for further info : http://www.microsoft.com/com/default.mspx
0
 

Author Comment

by:link334
Comment Utility
Kinger247,

Thanks for the reply. This was one of the first articles I read. Unfortunately it is greek and am unable to parse it.

"Microsoft COM (Component Object Model) technology in the Microsoft Windows-family of Operating Systems enables software components to communicate. COM is used by developers to create re-usable software components, link components together to build applications, and take advantage of Windows services. The family of COM technologies includes COM+, Distributed COM (DCOM) and ActiveX® Controls."

Software components? Are the COM's a file type such as a DLL that are able to be shared?

Sorry for being so ignorant.
0
 
LVL 13

Accepted Solution

by:
AngryBinary earned 150 total points
Comment Utility
COM can be thought of, at it's simplest, as a binary module that can be reused by other programs.

To give a practical example, Microsoft provides a COM for Text-to-Speech. If you want to write a program that utilizes text to speech on a Windows platform for which this particular COM is compatible (anything after Win98, if I'm not mistaken), rather than reinvent the entire text-to-speech technology, your program can pass text to the COM object, which will in turn handle the talking part for you. On the user's machine, they will need to have your program, and the COM binary file (often a DLL or OCX) registered.

--Randall
0
 
LVL 10

Expert Comment

by:Kinger247
Comment Utility
.dll, .ocx and .exe can all be COM objects.

Think of it as metaphor - like a steering wheel....

You wrote the code for the steering wheel, you compile it to a binary standard that enables any other person requiring a steering wheel to use.
The wheel will come compiled (black box).
0
 

Author Comment

by:link334
Comment Utility
AngryBinary,

Awesome description! Makes since. One thing for clarification on the last sentence.

"On the user's machine, they will need to have your program, and the COM binary file (often a DLL or OCX) registered."
Who provides the COM (ocx and DLL)? Microsoft and/or Application programmer? And, how does the COM get registered?

Thanks
Link334
0
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 
LVL 2

Expert Comment

by:numansiddique
Comment Utility

In COM you expose the interfaces and hide actual implementation to the outside world. Any program can make use of the services of your COM object by making use of the interface method it exposes. The services will be implemented by you in a different class. The user will be least bothered to know how the services are implemented.
0
 
LVL 10

Assisted Solution

by:Kinger247
Kinger247 earned 100 total points
Comment Utility
The Com binary file can be made or sourced from anyone. It just does a particular job. Instead of you writing the code to do the job, the Com control will do it for you. It will need to be registered on the machine if the file is not located in the same folder as the calling program.
0
 
LVL 21

Expert Comment

by:theGhost_k8
Comment Utility
these are some search engine
www.google.com
www.altavista.com


gud collection of information:-
www.wikipedia.org

GO SEARCH THERE...........


sorry !!! self study ??
The best option is goto a gud search engine and search for it !! You will definatly get help !!
This aint a good Study ... i think searching will allow u to go through the other notes too...
0
 

Author Comment

by:link334
Comment Utility
theGhost k8,

The following is a link to some information you should find helpful in building character.
www.albion.com/netiquette/introduction.html
0
 
LVL 21

Expert Comment

by:theGhost_k8
Comment Utility
i take no offence but i dont know if it has hit the weak point !!
i;ve never intended towards wounding the feelings..... but it really does... i appologiZ for the same !!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now