Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

COM vs. DCOM

Posted on 1999-07-20
2
Medium Priority
?
807 Views
Last Modified: 2013-11-20
Thic question doesn't quite belong here, but I belive I'll find answer(s).
I'm starting with COM programming and a little bit confused with few, probably basic things.
I develop application which receives (and sends) data via serial port and have to distribute it over network. My idea is to do this with a single COM EXE server which colects data and send it to the applications on a different machines. Application can have blocked thread listening and waiting data to come.

1. What is the difference between COM and DCOM network communication?
2. What I need to let all the different machines know about existance od EXE server (both COM and DCOM)? In other words, how to register them?
3. How COM/DCOM components are distributed to the other developers who want to use their services? Is it neccessary to include .h and .c files, all there is another way?
4. Is there smething else important for the begining? :)

Thank you very much,

Apolo.

P.S. My last 53 points. :)
0
Comment
Question by:ekc
[X]
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
2 Comments
 
LVL 15

Accepted Solution

by:
Tommy Hui earned 200 total points
ID: 1310707
COM's network communication model is DCOM (Distributed COM).

When you build a COM server, you typically need to use an .IDL file. The IDL file is used to create a proxy/stub DLL and the type library. You need to register the proxy DLL on the client machines so that they can communicate with the server. You typically would use the proxy or type library to get the interfaces. You typically don't need the .h or any .c files.

I would recommend you take a look at Professional DCOM Application Development by Jonathan Pinnock ISBN: 1-861001-31-2 for real examples of how to create DCOM servers.
0
 

Expert Comment

by:rajasaravanan
ID: 1310708
1. To be simple DCOM is "COM with long wire". DCOM is an extension of COM for network communication.

2.COM components are made visible by registering its GUID in the windows registry. In a network there are many ways to let the machines know about ur component. It will be easy if U have DCOM95 installed in your system. It comes with Windows 98. Or else what can U do is import the registry file of the component into the windows system registry of the maxchines. If Ur EXE is a self registering EXE then the work is easy. Its enough if U run the EXE on the machines U want to make visble the component. It will register itself with a link to the server machine where the component resides.

3.The components can be installed on the machines just by registering the component DLLs in that system. There is no absolute necessity of providing .h files etc..) If it is such case the whole concept of COM would get violated.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
In this post we will learn different types of Android Layout and some basics of an Android App.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

722 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