Solved

Relationship between APPID & CLSID?

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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 …
What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
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…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

863 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

19 Experts available now in Live!

Get 1:1 Help Now