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 » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

"message changed" problem



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old May 11th 06, 10:10 PM posted to microsoft.public.outlook.program_vba
clc
external usenet poster
 
Posts: 1
Default "message changed" problem

Hi,

I'm creating a new or editing an existing journalitem programmatically using C++ and Outlook Object Model using OL 2003 on XP.

My code (shortened for readability)

Assume I have a valid polApp (= _ApplicationPtr) and polNS (= _NameSpacePtr)

_JournalItemPtr pItem = (_JournalItemPtr) polApp-CreateItem( olJournalItem );

or

_JournalItemPtr pItem = polApp-polNS-GetItemFromID( vItemID, vStoreID );
....
pItem-Subject = CComBSTR(_T("My new subject")) ;
pItem-Save();
pItem-Close(olSave);

So far so cool right? And this works except that it seams like it leaves the item open. Meaning that if I open the same message in outlook, edit it and try to save it, I get the message

"This message has been modified by another user" And I can only create a copy or exit and loose my edit....

Any ideas?

Thank you!
Ben
 




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
"this item could not be saved because it has been changed" error m Ed Gogol Outlook - Using Contacts 5 April 17th 06 01:27 PM
Problem with Company names starting with "LA" or "LE" Phil_R Outlook - Using Contacts 0 April 1st 06 12:31 AM
Problem with Company names starting with "LA" or "LE" Phil_R Outlook - Using Contacts 0 April 1st 06 12:30 AM
"Percent" field changed to "Number" field Vaughan Outlook - Using Forms 1 March 14th 06 02:32 PM
all inbox files changed to "unread" mode rock9995 Outlook Express 20 February 2nd 06 03:17 PM


All times are GMT +1. The time now is 07:06 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.