A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Close method returning 80040108



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 13th 07, 09:11 AM posted to microsoft.public.office.developer.com.add_ins,microsoft.public.outlook.program_addins,microsoft.public.win32.programmer.messaging
Michael Tissington
external usenet poster
 
Posts: 9
Default Close method returning 80040108

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 ?


  #2  
Old February 13th 07, 04:09 PM posted to microsoft.public.office.developer.com.add_ins,microsoft.public.outlook.program_addins,microsoft.public.win32.programmer.messaging
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Close method returning 80040108

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" wrote in message
...
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 ?


  #3  
Old February 13th 07, 06:47 PM posted to microsoft.public.office.developer.com.add_ins,microsoft.public.outlook.program_addins,microsoft.public.win32.programmer.messaging
Michael Tissington
external usenet poster
 
Posts: 9
Default Close method returning 80040108

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]" wrote in message
...
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" wrote in message
...
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 ?




  #4  
Old February 13th 07, 09:03 PM posted to microsoft.public.office.developer.com.add_ins,microsoft.public.outlook.program_addins,microsoft.public.win32.programmer.messaging
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Close method returning 80040108

Argh yes, since they broke compatibility.

It's documented as a known issue for Outlook 2007 at
http://support.microsoft.com/default...b;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" wrote in message
...
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 ?


  #5  
Old February 14th 07, 01:03 AM posted to microsoft.public.office.developer.com.add_ins,microsoft.public.outlook.program_addins,microsoft.public.win32.programmer.messaging
Michael Tissington
external usenet poster
 
Posts: 9
Default Close method returning 80040108

Thanks for the idea - I'll post back if I come up with a better workaround
....

"Ken Slovak - [MVP - Outlook]" wrote in message
...
Argh yes, since they broke compatibility.

It's documented as a known issue for Outlook 2007 at
http://support.microsoft.com/default...b;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" wrote in message
...
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 ?




 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting user input using a form and returning to procedure Twotone Outlook and VBA 2 February 7th 07 10:46 PM
deleted emails returning David Outlook - General Queries 0 March 30th 06 06:09 PM
savemode in Close method Long Nguyen Outlook - Using Forms 2 March 30th 06 08:44 AM
LDAP not returning correct field info cleagl Outlook - Using Contacts 0 March 27th 06 12:55 AM
Old Reminders Keep Returning Anita Taylor Outlook - Calandaring 0 March 9th 06 04:11 PM


All times are GMT +1. The time now is 11:33 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.