COleDateTime tdate,ttime;
tdate.SetDate(2002,1,1);
ttime.SetTime(10,0,0);m_ptrTmpRecord->AddNew();
m_ptrTmpRecord->PutCollect("SurveyDate",(_variant_t)tdate);
m_ptrTmpRecord->PutCollect("SurveyTime",(_variant_t)ttime);
m_ptrTmpRecord->Update();
程序执行到
m_ptrTmpRecord->PutCollect("SurveyDate",(_variant_t)tdate);就出错啦!!!
Access Violation!