View Single Post
  #1  
Old September 18th 07, 11:46 PM posted to microsoft.public.developer.outlook.addins,microsoft.public.outlook.program_addins
Mark Beiley
external usenet poster
 
Posts: 22
Default NULL event item ?

What are possible reasons why I would get a NULL event item returned from a
call to the Item() member function of the Items for a calendar? My code
goes something like this:

pCalendar = pNameSpace-GetDefaultFolder(olFolderCalendar);
pItems = pCalendar-GetItems();
nRecCount = pItems-Count;

for(i=1; i=nRecCount; i++)
{
pApptItem = pItems-Item(i);
}

On most machines, I never see a problem, but on one customer's machine
'pApptItem' is NULL for every event? I'm at a loss as to why, or how I can
figure out more information about these events?

Thanks
Mark
--
Beiley Software
http://www.beiley.com


Ads