DllGetClassObject should take a REFCLSID not an LPCLSID.