About COM and DCOM

Posted on 2003-03-04
Medium Priority
Last Modified: 2010-05-01
Hi there,
Can any body tell me ,what is COM and DCOM.what is the diference betwen them.
And what are  Module and Class Module in VB and what is the difference between them.
Question by:hammad_hammad
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Accepted Solution

PhiliP earned 60 total points
ID: 8068197
COM Component Object Model. Modeling your application in components same as builing a Car from components. Take a wheel Take a headlight Take a seat and start assembly.

Purppose is to create reusable components that can be used in diferent applications.

DCOM in the protocol to use COM distributed. Component A is on server one and application B on Client 2 Application B knows where to find and communicate with component A through DCOM. This is the way (used to be) to build scallable distributed application.

Next a module is a place where you store Contants and public functions to be used all over your application.
Sometimes refered to as a utility class. It does not need to be instantiated it's there from the moment your application starts. So its expensive in terms of resources used by the opperating system

A classmodules is a blueprint of an object. You can create it by using = New or CreateObject and you can Destroy it by setting it to Nothing.
In a class you can create Methods (functions and subs) Properties (let/set,get) and Events (raiseevents)

CLasses are the buildingblocks for you application.

Read and learn about them.


Expert Comment

ID: 8095094
not too sure about COM and DCOM. But .bas modules are can be used to organise code within VB and class modules enable you to develop object orientated applications.

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

719 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