Solved

Relationship between APPID & CLSID?

Posted on 1999-01-14
2
506 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
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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

In this article, I will show how to use the Ribbon IDs Tool Window to assign the built-in Office icons to a ribbon button.  This tool will help us to find the OfficeImageId that corresponds to our desired built-in Office icon. The tool is part of…
As more and more people are shifting to the latest .Net frameworks, the windows presentation framework is gaining importance by the day. Many people are now turning to WPF controls to provide a rich user experience. I have been using WPF controls fo…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
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…

810 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