Z
zen
Hi
I'd like to delete a MAPI folder (that is one my plugin created in outlook)
when I uninstall my plugin... but I can't create an instance of
Outlook.Application in my DllUnregisterServer function to get outlook to
delete it ( it returns Module not found ).
It works in a normal .exe, but not from my own dll
STDAPI DllUnregisterServer(void)
{
CLSID clsid;
HRESULT hr = ::CLSIDFromProgID(L"Outlook.Application", &clsid);
//returns happy
CComPtr <Outlook::Application> outlookApplication;
hr = outlookApplication.CoCreateInstance(clsid);
// returns "The specified module could not be found"
}
Anyone know the secret?
Peace
~Zen
I'd like to delete a MAPI folder (that is one my plugin created in outlook)
when I uninstall my plugin... but I can't create an instance of
Outlook.Application in my DllUnregisterServer function to get outlook to
delete it ( it returns Module not found ).
It works in a normal .exe, but not from my own dll
STDAPI DllUnregisterServer(void)
{
CLSID clsid;
HRESULT hr = ::CLSIDFromProgID(L"Outlook.Application", &clsid);
//returns happy
CComPtr <Outlook::Application> outlookApplication;
hr = outlookApplication.CoCreateInstance(clsid);
// returns "The specified module could not be found"
}
Anyone know the secret?
Peace
~Zen