R
Remco Happel
Can anyone help me on the following problem:
After adding a new contact and opening + closing it in Outlook XP, I get a dialog box
asking if I want to save changes (no change was made).
After saving (by Outlook) the dialogbox never appear, nothing visible has changed.
Versions used:
Outlook XP (Version 10.0, build:3513, English US, SP1)
Redemption (Version 3.3.0.282)
Visual Basic 6 SP5
I use redemption objects to get a previous specified Outlook folder
Add a new contact by : SafeContactItem = Redemption.Mapifolder.Items.Add("IPM.Contact")
Then I use MAPIUtils.HrSetOneProp for each of the following properties
: FileUnder (save as), Subject, DisplayName, SurName, GivenName,
email1 display (twice, with different propid), email1 address, emailtype.
Last poperty is called by : Call muMT.HrSetOneProp(mySContact, &H8068001E, "SMTP", True)
Where muMT is an instance of MAPIUtils
mySContact is an instance of SafeContactItem
and only this (last) call has bSave=True set.
Did try to finalize the contact by closing de SafeContactItem.
Then get the stored contact with (cdo) 'MAPI.Session.getMessage' into a 'cdoMsg' var.
Calling cdoMsg.ConversationIndex = MAPI.Session.CreateConversationIndex
Call cdoMsg.Update(True, True) 'CDO save message (make permanent + refresh object)
Now releasing all references (and MAPIUtils.Cleanup)
What can I do to fix the problem?
Any help is welcome.
After adding a new contact and opening + closing it in Outlook XP, I get a dialog box
asking if I want to save changes (no change was made).
After saving (by Outlook) the dialogbox never appear, nothing visible has changed.
Versions used:
Outlook XP (Version 10.0, build:3513, English US, SP1)
Redemption (Version 3.3.0.282)
Visual Basic 6 SP5
I use redemption objects to get a previous specified Outlook folder
Add a new contact by : SafeContactItem = Redemption.Mapifolder.Items.Add("IPM.Contact")
Then I use MAPIUtils.HrSetOneProp for each of the following properties
: FileUnder (save as), Subject, DisplayName, SurName, GivenName,
email1 display (twice, with different propid), email1 address, emailtype.
Last poperty is called by : Call muMT.HrSetOneProp(mySContact, &H8068001E, "SMTP", True)
Where muMT is an instance of MAPIUtils
mySContact is an instance of SafeContactItem
and only this (last) call has bSave=True set.
Did try to finalize the contact by closing de SafeContactItem.
Then get the stored contact with (cdo) 'MAPI.Session.getMessage' into a 'cdoMsg' var.
Calling cdoMsg.ConversationIndex = MAPI.Session.CreateConversationIndex
Call cdoMsg.Update(True, True) 'CDO save message (make permanent + refresh object)
Now releasing all references (and MAPIUtils.Cleanup)
What can I do to fix the problem?
Any help is welcome.