Archive for the ‘COM’ Category

The Demise of CAPICOM

Wednesday, October 15th, 2008

CAPICOM, a COM-based wrapper for the CryptoAPI library, is deprecated and on its way out. However, Microsoft has no time line for phasing it out, nor have they provided sufficient documentation of alternatives. Many CAPICOM pages contain a confusing, bright-red header along the lines of: [The SignedCode object is available for ...

CoCreateInstance Fails With “Class Not Registered”

Tuesday, June 17th, 2008

Recently, I had a problem unique to my test machine. Attempting to call CoCreateInstance on a COM class provided by one of our DLLs resulted in HRESULT 0x80040154, which corresponds to "Class not registered". This was a mystery since regsvr32 appeared to properly register our DLL, and all the obvious ...