Solved

Relationship between APPID & CLSID?

Posted on 1999-01-14
2
521 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
[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 100 total points
ID: 1418773
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
ID: 1418774
Thank you. That was a great explanation.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Visual Fox Pro commands 15 62
Windows 10 Scheduled Tasks 11 111
C#: need to import an entire CSV file 4 62
Where to obtain Oracle Data Provider for .NET 3.5 7 61
This article shows how to make a Windows 7 gadget that extends its U/I with a flyout panel -- a window that pops out next to the gadget.  The example gadget shows several additional techniques:  How to automatically resize a gadget or flyout panel t…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

738 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