IT Community - Software Programming, Web Development and Technical Support

COM - The Short Explanation

This is a discussion on COM - The Short Explanation within the C and C++ Programming forums, part of the Software Development category; COM - The Short Explanation Let's try to have a highly abstracted understanding on how COM works without using any ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > C and C++ Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 04-10-2007, 09:52 AM
Karpagarajan Karpagarajan is offline
D-Web Analyst
 
Join Date: Mar 2007
Posts: 299
Karpagarajan is on a distinguished road
Thumbs up COM - The Short Explanation

COM - The Short Explanation

Let's try to have a highly abstracted understanding on how COM works without using any jargons. First we build components following COM rules and put them into files (.dll or .exe). Then we register them so the information about them is stored in Windows registry. By now we have finished the component (or server) building job. To use certain functions, we need to know their unique ID's and the function description (or declaration) of each of them. We can get this information by checking the registry using some tools or use some files from the component vendors that store this information. Then we get the pointers of these functions by making calls to them following the COM rules. The Windows will take care of the rest of of the work such as locating the file storing the functions and load/unload them as needed. Now we can enjoy the functions just like using any conventional functions to get our tasks done.

Let's have a little bit clarification: A component is a group of functions. A .exe or .dll file is not component. They are just the means to store components. A file can have multiple components. Each component has an ID (CLSID) and each interface of a component also has an ID (IID). All the ID's are globally unique. In other worlds, no two functions or components in the world have the same ID. Each component can have more than one interface. Each interface is a group of functions.

thanks
__________________
Karpagarajan. R
Necessity is the mother of invention
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
C- Tricky Question & answers With explanation vijayanand C and C++ Programming 47 01-05-2009 09:06 PM
short cut command in windows run? saravanan Operating Systems 0 03-23-2008 10:16 PM
Short Cut 2 success Sabari The Lounge 0 09-04-2007 07:51 AM
VC++ A Short Cut - tutorial Karpagarajan C and C++ Programming 5 08-02-2007 06:28 AM
I want the explanation for the below example code.. oxygen PHP Programming 1 07-26-2007 03:39 AM


All times are GMT -7. The time now is 05:53 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0