Hi, i'm trying to accessing IMAPI from a Managed C++ Windows Form Control Library
the problem is that when i call CoCreateInstance i get in return REGDB_E_CLASSNOTREG.
I Really dont understand why since the equivalent code from a .NET
imapi wrapper that works is identical. notice also that the same C++
code here works on another machine. i assume also that the class is correctly registered since the C# code works. thanks to anyone who try to help
My C++/CLI code:
[code]
CLSIDFromString(L"{520CCA62-51A5-11D3-9144-00104BA11C5E}", &CLSID_MSDiscMasterObj);
CLSIDFromString(L"{520CCA62-51A5-11D3-9144-00104BA11C5E}", &IID_IDiscMaster);
It
is not equivalent code. In the C# code, you ask
IMAPIObjectFactory to create the class object for you. You need
to duplicate that in C++, find out how to create the IMAPIObjectFactory
object.
Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.