RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
ComObj.ClassIDToProgID Function

Returns the programmatic ID for a specified class given its class ID (CLSID).

Pascal
function ClassIDToProgID(const ClassID: TGUID): string;
C++
AnsiString ClassIDToProgID(const TGUID ClassID);

ComObj

ClassIDToProgID retrieves the programmatic ID for the CLSID specified by the ClassID parameter. 

If ClassIDToProgID succeeds, it returns the requested ProgID. If ClassIDToProgID fails an EOleSysError exception is raised with an error code indicating the cause of the error. The possible error codes are as follows:

Error code 
Meaning 
REGDB_E_CLASSNOTREG  
Class not registered in the registry.  
REGDB_E_READREGDB  
Error reading registry.  

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!