Click here to Skip to main content
15,895,011 members
Articles / Programming Languages / Objective C

DCOM D-Mystified: Questions and Answers

Rate me:
Please Sign up or sign in to vote.
4.75/5 (17 votes)
11 Aug 2000CPOL 545.3K   4.9K   50   199
Brian's detailed answers to your most frequently asked questions about his DCOM tutorial.

Introduction

Welcome to the Questions and Answers page for the DCOM D-Mystified tutorial. I have created this extra page so I can more richly (such as with screenshots and following my source code conventions) provide you, my readers, with answers to your frequently asked questions. These are questions that you either ask me directly by e-mail, or that you post to The Code Project's message boards at the ends of each of the steps of the tutorial.

Source Code Archive

If you follow along through the tutorial as it goes, there is source code provided with each step, and all the instructions in the tutorial allow you to follow along and end up with the same source code (we hope) as is provided for download. However, it's also nice to be able to just have a central place where the source code for all steps can be found, regardless of which one you're on.

To get the source code for a particular step, simply click the link in the list below to download the corresponding files.

 

 

Questions and Answers

A step of the tutorial mentions that there are these "Back" and "Next" buttons at the bottom of the page. I see "<< Back" and "Next >>" *links*, but no buttons. Do these work? What's up?

The "Back" and "Next" buttons which the question asked about used JavaScript; Chris Maunder (this site's administrator) and I decided to turn the buttons into links because not all browsers support or allow JavaScript. The links work just like the buttons and step you through the tutorial.

Why do you stop at generating the project with AppWizard in Step 1 and make us go on to Step 2?

I do this so if you choose to download the sample source code for Step 1, you get a freshly-started project which hasn't been modified yet, and having just generated the project is a great stopping place if it's late in the evening. Scroll down to the bottom of the article page and click the Next button to move on to Step 2, where we actually begin to modify the source files.

Notes From the Rear

This page is here because DCOM is such a complex and intricate subject that many people have lots of questions, even with the most well-documented tutorial. Also, sometimes it helps to be able to have the ability to answer your questions with figures, charts, diagrams, and screenshots. The message boards, great though they are, just don't provide that functionality. I strongly encourage you to pose questions to the message boards, and I'll either reply to you on the board or put up a "Hey everybody, the answer to this is on the Questions and Answers page!" if a lot of people ask about it.

Each time I've added a new question to this page, Chris Maunder's excellent scripts will mark it with a little 'Updated' graphic, and the home page will let you know it's been updated. Then simply go to this page to see what's new!

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Team Leader
United States United States
Dr. Brian Hart obtained his Ph.D. in Astrophysics from the University of California, Irvine in 2008. Under Professor David Buote, Dr. Heart researched the structure and evolution of the universe. Dr. Hart is currently employed as a Astrodynamicist / Space Data Scientist with Point Solutions Group in Colorado Springs, CO supporting Space Operations Command, United States Space Force. Dr. Hart is a Veteran of the U.S. Army and the U.S. Navy, having most recently served at Fort George G. Meade, MD as a Naval Officer with a Cyber Warfare Engineer designator. Dr. Hart has previously held positions at Jacobs Engineering supporting Cheyenne Mountain/Space Force supporting tests, with USSPACECOM/J58 supporting operators using predictive AI/ML with Rhombus Power, and with SAIC supporting the Horizon 2 program at STARCOM. Dr. Hart is well known to the community due to his over 150 technical publications and public speaking events. Originally from Minneapolis/Saint Paul, Minnesota, Dr. Hart lives in Colorado Springs with his Black Lab, Bruce, and likes bowling, winter sports, exploring, and swimming. Dr. Hart has a new movie coming out soon, which is a documentary called "Galaxy Clusters: Giants of the Universe," about his outer space research. The movie showcases the Chandra X-ray Observatory, one of NASA’s four great observatories and the world’s most powerful telescopes for detecting X-rays. The movie has been accepted for screening at the USAFA Planetarium and will highlight the need of updating and maintaining X-ray telescopes for scientific advancement.

Comments and Discussions

 
GeneralRe: A questions about DCOM!!!! Pin
Brian C Hart6-Feb-02 7:18
professionalBrian C Hart6-Feb-02 7:18 
QuestionHow shld I remove HelloServ from ControlPanel-> Services ? Pin
sajal22-Dec-01 5:47
sajal22-Dec-01 5:47 
AnswerRe: How shld I remove HelloServ from ControlPanel-> Services ? Pin
Brian C Hart22-Dec-01 6:01
professionalBrian C Hart22-Dec-01 6:01 
QuestionHow do i pass a structure accross DCOM... Pin
17-Dec-01 5:14
suss17-Dec-01 5:14 
AnswerRe: How do i pass a structure accross DCOM... Pin
Brian C Hart17-Dec-01 6:07
professionalBrian C Hart17-Dec-01 6:07 
AnswerRe: How do i pass a structure accross DCOM... Pin
Anonymous31-Oct-02 9:48
Anonymous31-Oct-02 9:48 
GeneralDistributing componets on a server PLEASES HELP Pin
29-Nov-01 23:15
suss29-Nov-01 23:15 
QuestionHow can I create my special service? Pin
Austin Kalb15-Oct-01 21:25
Austin Kalb15-Oct-01 21:25 
I've written a sockets program (sockets visual c++) that tracks which stock (as in stock market stock) a user is currently viewing and locks out others from using that stock for 15 seconds. The client sends an in-use message to the server which in turns broadcasts the message (using async sockets, not multicast) to the other clients. After 15 seconds the server sends a no-longer-in-use message to all of the clients. When a new client is connected, the server sends a copy of the entire list of in-use stocks to start, then regular updates as before. All this is encapsulated in a "InUseService" c++ class. There is no screen io associated with it. I simply instantiate the class in an MFC windows program and it works great.

Here's the problem - the program should run on our Win2000 server as a service so the admin does not need to be logged on. After a couple weeks of searching, I still cant find a simple example of a program turned service. I can get it to "run" using the ATL service wizard, but alas, it doesnt seem to want to accept connections - and I'm not really sure how to debug a service.

I would try and use dcom, but Im not sure how to save information between dcom requests.. and I wasn't real successful getting the tutorial demo to work anyways.

HELP!!! Any suggestions? Thanks!.


//
// Austin Kalb <akalb@osicorp.com>
// OutSource International Corp.
// Tehachapi, CA
// 661.823.1300
//
Generala BSTR initialization Pin
bogdan27-Sep-01 0:08
bogdan27-Sep-01 0:08 
Generalverify existency of URL ( with proxy ) Pin
11-Sep-01 23:25
suss11-Sep-01 23:25 
Generalinterfacing software Pin
22-Aug-01 8:06
suss22-Aug-01 8:06 
GeneralRe: interfacing software Pin
Brian C Hart22-Aug-01 8:16
professionalBrian C Hart22-Aug-01 8:16 
GeneralPassing a large number of objects over the the internet Pin
AndyC22-Aug-01 7:56
AndyC22-Aug-01 7:56 
GeneralRe: Passing a large number of objects over the the internet Pin
16-Oct-01 9:44
suss16-Oct-01 9:44 
GeneralClasse non inscrite Pin
2-Aug-01 0:16
suss2-Aug-01 0:16 
GeneralUnable to access IHelloWorld because The RPC server is unavailable. Pin
Alex Whittles10-Jul-01 9:39
Alex Whittles10-Jul-01 9:39 
GeneralRe: Unable to access IHelloWorld because The RPC server is unavailable. Pin
Alex Whittles10-Jul-01 9:51
Alex Whittles10-Jul-01 9:51 
GeneralRe: Unable to access IHelloWorld because The RPC server is unavailable. Pin
27-Jul-01 9:49
suss27-Jul-01 9:49 
GeneralRe: Unable to access IHelloWorld because The RPC server is unavailable. Pin
LW14-Dec-01 20:10
LW14-Dec-01 20:10 
GeneralRe: Unable to access IHelloWorld because The RPC server is unavailable. Pin
11-May-02 5:44
suss11-May-02 5:44 
GeneralRe: Unable to access IHelloWorld because The RPC server is unavailable. Pin
Brian C Hart11-May-02 5:45
professionalBrian C Hart11-May-02 5:45 
GeneralRe: Unable to access IHelloWorld because The RPC server is unavailable. Pin
Alex Whittles12-May-02 23:18
Alex Whittles12-May-02 23:18 
QuestionIs this what I need? Pin
3-Jul-01 2:45
suss3-Jul-01 2:45 
GeneralQuestion regarding DCOM Pin
29-Jun-01 8:35
suss29-Jun-01 8:35 
GeneralHelloServ works locally, not remotely Pin
David L. Button29-Jun-01 5:59
David L. Button29-Jun-01 5:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.