FANDOM


    HINSTANCE hInst = ::CoLoadLibrary( L"Bob.dll", TRUE );
    typedef HRESULT (__stdcall *DllGetClassObject_t)(REFCLSID rclsid, REFIID riid, LPVOID* ppv);
    DllGetClassObject_t pDllGetClassObject_t = (DllGetClassObject_t)::GetProcAddress( hInst, "DllGetClassObject" );
    HRESULT hRes = pDllGetClassObject_t( CLSID_BOBClass, IID_IClassFactory, (void**) &spClassFactory );