Close method returning 80040108

  • Thread starter Thread starter Michael Tissington
  • Start date Start date
M

Michael Tissington

I'm using C++ and Outlook 2007. In my Addin I'm calling the Close method
with olDiscard on a Contact Item.

I can get various properties on the item but when I try to do a Close I get
back an error 0x80040108 which I think is invalid Object.

This works in previous versions of Outlook.

Any ideas please ?
 
Where are you calling Close? Outlook 2007 and the latest hot fix for Outlook
2003 change the old behavior to return an error if you try to close an
Inspector or item in the item.Close or Inspector.Close event handlers.
 
Thanks and Argh .... Yes, I'm calling it in the Close ... basically I do not
want the Outlook confimration dialog box to show up - I've already displayed
my own.

Is there another way to do this now ?
 
Argh yes, since they broke compatibility.

It's documented as a known issue for Outlook 2007 at
http://support.microsoft.com/default.aspx?scid=kb;EN-US;929593, not
documented at all for the change to Outlook 2003.

I've been using timers for my applications, but where I start the timer
depends on if I'm handling Item.Send or whatever. Otherwise I don't know of
any workarounds.
 
Thanks for the idea - I'll post back if I come up with a better workaround
....
 
Back
Top