Share this page

# Example:lrc_CoGetClassObject

This example shows how to use lrcCoGetClassObject after creating the object using Cocreate.

    GUID pClsid = lrc_GUID("student.student.1");
    unsigned long dwClsContext = lrc_ulong("3");
    struct _COSERVERINFO * pServerInfo = NULL;
    GUID riid = IID_IClassFactory;
    lrc_CoGetClassObject(&pClsid, dwClsContext, pServerInfo, &riid,(void**)&IClassFactory_0, CHECK_HRES);

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