Group:  Microsoft Outlook ยป microsoft.public.outlook.program_addins
Thread: Close method returning 80040108

Geek News

Close method returning 80040108
"Michael Tissington" <mtissington[ at ]newsgroup.nospam> 2/13/2007 8:11:03 AM
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 ?


Re: Close method returning 80040108
"Ken Slovak - [MVP - Outlook]" <kenslovak[ at ]mvps.org> 2/13/2007 3:09:19 PM
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.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Michael Tissington" <mtissington[ at ]newsgroup.nospam> wrote in message
news:ukuJAa0THHA.868[ at ]TK2MSFTNGP05.phx.gbl...
[Quoted Text]
> 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 ?
>

Re: Close method returning 80040108
"Michael Tissington" <mtissington[ at ]newsgroup.nospam> 2/13/2007 5:47:37 PM
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 ?



"Ken Slovak - [MVP - Outlook]" <kenslovak[ at ]mvps.org> wrote in message
news:OaeNiH4THHA.480[ at ]TK2MSFTNGP02.phx.gbl...
[Quoted Text]
> 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.
>
> --
> Ken Slovak
> [MVP - Outlook]
> http://www.slovaktech.com
> Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
> Reminder Manager, Extended Reminders, Attachment Options
> http://www.slovaktech.com/products.htm
>
>
> "Michael Tissington" <mtissington[ at ]newsgroup.nospam> wrote in message
> news:ukuJAa0THHA.868[ at ]TK2MSFTNGP05.phx.gbl...
>> 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 ?
>>
>


Re: Close method returning 80040108
"Ken Slovak - [MVP - Outlook]" <kenslovak[ at ]mvps.org> 2/13/2007 8:03:23 PM
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.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Michael Tissington" <mtissington[ at ]newsgroup.nospam> wrote in message
news:ODdIMc5THHA.1000[ at ]TK2MSFTNGP05.phx.gbl...
[Quoted Text]
> 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 ?

Re: Close method returning 80040108
"Michael Tissington" <mtissington[ at ]newsgroup.nospam> 2/14/2007 12:03:00 AM
Thanks for the idea - I'll post back if I come up with a better workaround
....

"Ken Slovak - [MVP - Outlook]" <kenslovak[ at ]mvps.org> wrote in message
news:%23$vtOo6THHA.920[ at ]TK2MSFTNGP05.phx.gbl...
[Quoted Text]
> 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.
>
> --
> Ken Slovak
> [MVP - Outlook]
> http://www.slovaktech.com
> Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
> Reminder Manager, Extended Reminders, Attachment Options
> http://www.slovaktech.com/products.htm
>
>
> "Michael Tissington" <mtissington[ at ]newsgroup.nospam> wrote in message
> news:ODdIMc5THHA.1000[ at ]TK2MSFTNGP05.phx.gbl...
>> 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 ?
>


Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net