View Single Post
  #1  
Old September 13th 08, 07:53 AM posted to microsoft.public.outlook.program_addins
ringerxyz
external usenet poster
 
Posts: 2
Default How to add a contact to a journal item?

Hi
I use the following code to create a journal item in outlook:

pApp.CreateInstance(__uuidof(Application));
pApp-CreateItem(olJournalItem,(IDispatch**)&pCallInfo) ;

pCallInfo-put_ContactNames(bsCaller);
pCallInfo-put_Subject(bsSubject);
pCallInfo-put_Body(bsBody);

pCallInfo-put_Type(bsType);

pCallInfo-Save();

Here my question is: i want to relate a contact to the journal item(which is
a phone call entry),but i cann't found any calls i can use to achieve this
goal,
any tips?
thanks in advance

Ads