Hi..., I am trying to add appointment to calendar (using pimstore.lib n .h) using win ce...I am trying as follows: CoCreateInstance(CLSID_Application, NULL, CLSCTX_INPROC_SERVER, IID_IPOutlookApp, reinterpret_cast(&polApp)) polApp->Logon(NULL); polApp->CreateItem(olAppointmentItem, (IDispatch**)&pAppt); HRESULT hr = polApp->GetDefaultFolder(olFolderCalendar, &pFolder); hr = pFolder->get_Items(&pItems); hr = pItems->Add((IDispatch**)&pAppt); hr = pAppt->Save(); save giving me outofmemory exception.....May i know the reason plz.....
thanks in advance