Click here to Skip to main content
15,891,033 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 544.2K   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
Brian C. Hart, Ph.D., is a strategic engagement leader on a mission to leverage space technology to protect U.S. interests and assets against adversaries. Throughout Dr. Hart's career, he has enjoyed: Working closely with business executives to provide strategic direction and leadership, translating customer and competitive intelligence into compelling capture strategies and solutions, and mentoring teams to enhance individual and company capabilities while fostering an engaging and accountable environment, being involved in STEAM initiatives and education to develop greater awareness in the community, and serving the armed forces with the U.S. Navy and U.S. Army National Guard. He is excited to begin developing his career in Jacobs's Critical Mission Systems business unit, supporting NORAD and the U.S. Space Force.

Comments and Discussions

 
GeneralRe: COM/DCOM Events Pin
Brian Hart29-Aug-00 16:06
Brian Hart29-Aug-00 16:06 
GeneralError Message Pin
camson28-Aug-00 11:13
camson28-Aug-00 11:13 
GeneralRe: Error Message Pin
Brian Hart29-Aug-00 16:27
Brian Hart29-Aug-00 16:27 
GeneralTip: Start at Step 1 Pin
Brian Hart20-Aug-00 9:58
Brian Hart20-Aug-00 9:58 
GeneralSome Suggestions Pin
Steven Carleton20-Aug-00 9:05
Steven Carleton20-Aug-00 9:05 
GeneralRe: Some Suggestions Pin
Brian Hart20-Aug-00 9:56
Brian Hart20-Aug-00 9:56 
GeneralRe: Some Suggestions Pin
Steven Carleton20-Aug-00 10:44
Steven Carleton20-Aug-00 10:44 
GeneralRe: Some Suggestions Pin
Brian Hart29-Aug-00 16:26
Brian Hart29-Aug-00 16:26 
Steve,

Don't knock the Wizards, man! Smile | :)

Seriously, though, I totally agree with you on many levels, and I think you make some very valid points. Smile | :) Especially that, no, this tutorial doesn't do crap! But that's not the point. The point is to teach by trivial example; if you have your hand held to do something simple, chances are it makes doing something else that's more complicated a little less daunting.

I'm not stopping you from writing your own tutorial if you think you have a different if not better approach. In fact, I wouldn't miss it for all the tea in China! (Apologies to Chinese readers of this site) Smile | :) By all means, explain to us, Great Guru...

It's just that, I spent time out of my work schedule and life to write the tutorial... And tutorials are not around to do 'exactly what people need' anyway... they teach, (hopefully) or they don't.

Please note that I didn't have to post anything at all on The Code Project and could have saved time maybe... This tutorial's purpose never was to show you why or how DCOM/COM/ATL works, but just to do the most simple procedure I could think of so people can have chances to 'get their feet wet' as it were...

Of course you don't need the Wizards, but for some of the enormous amounts of code that one has to write and that you have to do some of it every time regardless of the software you're writing, they do save some typing and leave to worry about what you're going to write instead of how to write it...

But seriously, why make things unnecessarily hard and go to effort that you don't have to go to when there are tools that make it easier and faster to meet your deadlines (and maybe even, shudder, impress one's boss...).

"If someone makes a small mistake or there are changes in the code that somehow compiles, there can be a lot of frustration," Whoever said frustration wasn't a natural part of programming?? Plus, to address your point about "Wizards are OK, but only with some understanding of what you're doing," That's a valid point and I totally agree Smile | :) Don't you see? If I can just use wizards to write the framework for me, fill in the details, and voila!, working program in two weeks instead of spending one month or more on the learning curve and then coding everything from scratch, you can guess which route I'm going to take Smile | :)

If someone had posted this tutorial up earlier this summer than I did, I probably could have gotten way more done in less time by just having the educational experience of doing these basic steps... by doing this one learns more in less time and even gains understanding!

But hey, we could bandy this back and forth forever like the whole Windows vs. UNIX/LINUX/KOBOL (and COBOL) debate.

You program with what you prefer, and I'll program with what I prefer, and let's call it Pax, OK?

Plus, how about, since you champion ATL's implementation of connection points so much, then write up a similar tutorial that implements the same "Hello World" client and server but with more ATL than MFC... Because to tell truth, I am stumped by the ATL way, and if you have insight I definitely think that would be useful to not only me but also other readers of The Code Project.

C'mon, explain to us how it should be done; no one's stopping you!! However, no crapping on my work -- if you have criticisms be fair and constructive with your words. It doesn't look good to stomp all over someone else's work... But I can take appropriately and diplomatically worded criticisms...Smile | :)

Sincerely Yours,
Brian Har
GeneralRe: Some Suggestions Pin
19-Dec-00 23:20
suss19-Dec-00 23:20 
GeneralRe: Some Suggestions Pin
20-Feb-01 8:27
suss20-Feb-01 8:27 
GeneralRe: Some Suggestions Pin
eeevans8-Nov-00 9:07
eeevans8-Nov-00 9:07 
GeneralRe: Some Suggestions Pin
21-Nov-00 14:43
suss21-Nov-00 14:43 
QuestionHow can I try this on Windows98 Pin
Kamal17-Aug-00 18:57
Kamal17-Aug-00 18:57 
AnswerRe: How can I try this on Windows98 Pin
Brian Hart18-Aug-00 20:48
Brian Hart18-Aug-00 20:48 
AnswerRe: How can I try this on Windows98 Pin
Brian Hart18-Aug-00 21:15
Brian Hart18-Aug-00 21:15 
Generalsorry i have a one more question Pin
heavy jim ^^15-Aug-00 23:08
sussheavy jim ^^15-Aug-00 23:08 
GeneralRe: sorry i have a one more question Pin
Brian Hart18-Aug-00 20:51
Brian Hart18-Aug-00 20:51 
Questionwhat is this? Pin
heavy jim ^^15-Aug-00 23:03
sussheavy jim ^^15-Aug-00 23:03 
AnswerRe: what is this? Pin
Brian Hart18-Aug-00 20:49
Brian Hart18-Aug-00 20:49 
GeneralSecurity Pin
Mladen Bonev14-Aug-00 21:31
sussMladen Bonev14-Aug-00 21:31 
GeneralRe: Security Pin
Brian Hart14-Aug-00 23:59
Brian Hart14-Aug-00 23:59 
GeneralConnection points Pin
Member 199114-Aug-00 4:09
Member 199114-Aug-00 4:09 
GeneralHow.....-_- Pin
Member 20499-Aug-00 15:22
Member 20499-Aug-00 15:22 
GeneralRe: How.....-_- Pin
Brian Hart9-Aug-00 17:10
Brian Hart9-Aug-00 17:10 

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.