NULL event item ?

M

Mark Beiley

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top