Problem in ole32.CoCreateInstance ?

Ove Kaaven ovek at
Sun May 4 23:02:08 CDT 2003

man, 05.05.2003 kl. 01.22 skrev Sylvain Petreolle:
> Trying to run dxdiag for testing DirectPlay , get a read at 0x0 in
> CoCreateInstance
> at line 1355 (dlls/ole32/compobj.c):
> 1355            hres = IClassFactory_CreateInstance(lpclf, pUnkOuter,
> iid, ppv);
> This cant work since lpcf is always 0 and this function is defined as a
> macro in include/unknwn.h :

Why not check why it's "always 0" for you, instead of complaining that
it is? If the CoGetClassObject call can't obtain the class factory, it's
usually because the registry entries are missing, incorrect, or the
referenced dll can't be loaded, but then it should have returned a
failure, and CoCreateInstance should then bail out before getting to
this point. You could also find out why it didn't, then?

More information about the wine-devel mailing list