Error In CreateInstace of Outlook 2000 in WindowsXP
- From: jignesh2680@xxxxxxxxx
- Date: 16 Dec 2005 22:41:03 -0800
Dear Expert ,
I am developing an outlook Automation application in VC 6.0 .
My Application works fine in all windows 2000 Family both in Admin user
and local user .
Operating System Used : WindowsXP professional
Outlook : 2000
But the Application fails to create instance of outlook when i run my
appliction in local user
of WindowsXP . But the same application works fine in ADMIN user .
For Further Reference my code is :
[FAILS IN LOCAL USER ]
_ApplicationPtr pOutlook = NULL;
hRes = pOutlook.CreateInstance("Outlook.Application"); // Fails With
Error : -2147221005
Method 2 :
CLSID clsid;
IUnknown* punk;
HRESULT hRetVal = CLSIDFromProgID(OLESTR("Outlook.Application"),
&clsid);
hRetVal = CoCreateInstance(clsid, NULL, CLSCTX_LOCAL_SERVER,
IID_IUnknown, (LPVOID *) &punk);
But this aslo fails with NO clsid ....
Can anybody Please Tell me where i am going wrong....
Thanks in Advance
Regards ,
Jignesh
.
- Prev by Date: Word 2000 Comments Pane
- Next by Date: How to play powerpoint slideshow in WinForm
- Previous by thread: Word 2000 Comments Pane
- Next by thread: How to play powerpoint slideshow in WinForm
- Index(es):