C
cyan21
hello,
I have got en error when I try to set a subject to an appointment.
CComPtr<Outlook::_AppointmentItem> appt;
_bstr_t titre("something");
BSTR tmp;
tmp = titre.copy();
appt->put_Subject(tmp);
the error occured when I made : appt->put_Subject(tmp); and the
debugger stops here :
// atlcomcli.h
_NoAddRefReleaseOnCComPtr<T>* operator->() const throw()
{
ATLASSERT(p!=NULL); // p is null
return (_NoAddRefReleaseOnCComPtr<T>*)p;
}
could someone explain me this error ?
thanks in advance.
yann
nb : I also tried the method PutSubject(_bstr_t subject) but at the
same error occured.
I have got en error when I try to set a subject to an appointment.
CComPtr<Outlook::_AppointmentItem> appt;
_bstr_t titre("something");
BSTR tmp;
tmp = titre.copy();
appt->put_Subject(tmp);
the error occured when I made : appt->put_Subject(tmp); and the
debugger stops here :
// atlcomcli.h
_NoAddRefReleaseOnCComPtr<T>* operator->() const throw()
{
ATLASSERT(p!=NULL); // p is null
return (_NoAddRefReleaseOnCComPtr<T>*)p;
}
could someone explain me this error ?
thanks in advance.
yann
nb : I also tried the method PutSubject(_bstr_t subject) but at the
same error occured.