CoCreateInstance - Class not registered
Posted on 2006-11-09
Having problems with CoCreateInstance:
Here is the call I'm making:
hr = CoCreateInstance(__uuidof(_ComTestData), NULL, CLSCTX_SERVER, IID__ComTestData, (void**)&comTest);
After the CoCreateInstance, hr = 0x80040154, aka Class not registered. This class is contained in an activex control, which I've imported in stdafx.h via:
#import "C:\PathToMy\ActiveXControl.ocx" named_guids
I've checked the registry via regedit, and the class appears in the registry and to be sure I have unregistered and reregistered the control several times with regsvr32.
Any suggestions on this? I'm at my whits end.