|
-
July 21st, 2005, 01:24 AM
#1
CoCreateInstance fails
Hi,
I pretend to instance an object (as part of the code of my application). It works very good in WXP and X2K, but I've tried in W98 and it fails ("CoCreateInstance Failed."). The code is like this:
hr = CoCreateInstance({0x3F0C2D82,0x2187,0x11D4,{0x9F,0x74,0x00,0x80,0x5F,0x9B,0x81,0x2F}}, NULL, CLSCTX_INPROC_SERVER,{0x3F0C2D81,0x2187,0x11D4,{0x9F,0x74,0x00,0x80,0x5F,0x9B,0x81,0x2F}}, (void**) &EDCryptor);
if (SUCCEEDED(hr))
{
...
}
else
{
AfxMessageBox("CoCreateInstance Failed.");
}
Does someone know why?
Thanks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|