Any Ideas?
Thanks in advance,
ed
int m_range = //the number of days that I'm going to test
for(i = 0; i < m_range; i++)
{
IAppointment* pAppt2;
SYSTEMTIME st;
COleDateTime temp_date(cur_yr, cur_mo, cur_date + i, 0,0,0);
DATE st_date;
temp_date.GetAsSystemTime(st);
SystemTimeToVariantTime(&st, &st_date);
if(SUCCEEDED(pRec->GetOccurrence(st_date, &pAppt2)))
{
pRec->Release();
pAppt2->Release();
return TRUE;
}
}
return FALSE;
Peter
--
Peter Foot
Windows Embedded MVP
http://www.inthehand.com | http://blog.opennetcf.org/pfoot/
"ed" <e...@discussions.microsoft.com> wrote in message
news:9408A28B-BEE8-4813...@microsoft.com...