Is there a way that I could programatically detect if Microsoft Outlook (any version of it) is installed on the PC. I have to do it in unmanaged c++.
Could you provide some example?
Darius Kucinskas
2009-09-02 07:13:26
A:
MSalters, do you mean something like the following code:
::CoInitialize(NULL);
_ApplicationPtr pApp;
HRESULT hr;
hr = pApp.CreateInstance(__uuidof(Outlook::Application));
if ((pApp == NULL) || FAILED(hr))
{
return false;
}
Darius Kucinskas
2009-09-02 14:11:50