C
cyan21
hello,
I have some problems when I want to create an item ( email, appointment
).
the IDisptach pointer returned is null, how can I fix this ?
yann.
hr = olapp.CoCreateInstance(__uuidof(Outlook::Application), NULL,
CLSCTX_SERVER);
SUCCEEDED(hr);
hr = olapp->raw_CreateItem(Outlook:lAppointmentItem, &pDisp);
//pDisp = olapp->CreateItem(Outlook:lAppointmentItem);
SUCCEEDED(hr);
ATLASSERT(pDisp); /// ERROR
appt = pDisp;
I have some problems when I want to create an item ( email, appointment
).
the IDisptach pointer returned is null, how can I fix this ?
yann.
hr = olapp.CoCreateInstance(__uuidof(Outlook::Application), NULL,
CLSCTX_SERVER);
SUCCEEDED(hr);
hr = olapp->raw_CreateItem(Outlook:lAppointmentItem, &pDisp);
//pDisp = olapp->CreateItem(Outlook:lAppointmentItem);
SUCCEEDED(hr);
ATLASSERT(pDisp); /// ERROR
appt = pDisp;