Share this page

# lrc_GUID

Type Conversion From String

Returns the GUID of a named object.

    GUID lrc_GUID( const char *str );

    GUID* lrc_GUID_by_ref( const char *str );

*str | Pointer to the string with the name of the object.
GUID | The GUID of the object to be used in calls to COM functions.

The lrc_GUID function returns the GUID of a named object, such as a COM interface. VuGen uses it to retrieve the identifiers needed for retrieving interface identifiers and PROGIDs of COM objects to be used in COM communications.

lrc_GUID_by_ref is used when the COM API or invoking function require a pointer to the GUID.

## Return Values

lrc Return Values

## Parameterization

You cannot use standard parameterization for any arguments in this function.

## Example

This example retrieves the GUID of the Istudent interface:

    GUID pClsid = lrc_GUID("student.student.1");

Tips to improve your search results... VuGen Function Reference Version 26.1-26.3 Function Reference 26.1-26.3 All View Local Help Center View Online Help Center Version: