Solved

Relationship between APPID & CLSID?

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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

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…
After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
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…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

717 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