Solved

Relationship between APPID & CLSID?

Posted on 1999-01-14
2
491 Views
Last Modified: 2013-12-03
I have created a dll using VB5 and registered it on an NT4 server using Microsoft Transaction Server. I can use DCOMCNFG to view the appid of the VB application on the client machine and I can view the properties of the component in MTS to see the cslid on the server.
I have been asked to explain how the two are related and I have no idea. I believe that the clsid is somehow attached to the appid to form a logical link so that the client side application knows where to look for the server side dll. Am I close? Can you offer another explanation? Thanks.
0
Comment
Question by:rodnolan
2 Comments
 
LVL 15

Accepted Solution

by:
Tommy Hui earned 100 total points
Comment Utility
A CLSID is the ultimate identifier for any creatable objects. For these creatable objects, the CLSIDs are stored in the registry under HK_CLASS_ROOT\CLSID. Normally, these objects are provided by a local server (either EXE or DLL). However, for distributed components there may be more than one object provided by the component and hence these are grouped into an APPID that identifies the component. These APPIDs are stored in HK_CLASS_ROOT\APPID. But for every object that is a part of that APPID, under HK_CLASS_ROOT\CLSID\{GUIDofCreatableObject}\AppID = {GUIDofAPP}.

So when you create the object, COM looks into the APPID to see where the object is located. If there is an APPID associated with the CLSID, it uses DCOM to activate the server. If there isn't, then it checks the usual places (LocalServer32, InProcServer32, and InProcHandler32) to find it locally.
0
 

Author Comment

by:rodnolan
Comment Utility
Thank you. That was a great explanation.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

This article describes how to programmatically preset the "Pages per Sheet" option that's available with most printer drivers.   This setting lets you do "n-Up" printing, where two, four, or more pages are printed on each sheet of paper. If your …
This article describes a technique for converting RTF (Rich Text Format) data to HTML and provides C++ source that does it all in just a few lines of code. Although RTF is coming to be considered a "legacy" format, it is still in common use... po…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

763 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now