Show: Delphi C++
Display Preferences

System.Win.ComObj.ClassIDToProgID

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function ClassIDToProgID(const ClassID: TGUID): string;

C++

extern DELPHI_PACKAGE System::UnicodeString __fastcall ClassIDToProgID(const GUID &ClassID);

Properties

Type Visibility Source Unit Parent
function public
System.Win.ComObj.pas
System.Win.ComObj.hpp
System.Win.ComObj System.Win.ComObj

Description

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

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.



See Also

Personal tools
In Other Languages
Previous Versions
Assistance