R
RamRaj
Hello ,
I have a question in Powerpoint API. I am opening a powerpoint using COM
programming as follows
CComPtr<PowerPoint:resentations> presentations;
/* pptApplication is already set to valid pointer */
hr = pptApplication->get_Presentations(&presentations);
CComPtr<PowerPoint::_Presentation> thePresentation;
hr = presentations->Open((BSTR)szFileName, msoTrue, msoFalse, msoTrue,
&thePresentation);
/* thePresentation is returned as NULL for some test case*/
BSTR szName;
hr = thePresentation->get_Name(&szName);
/* szName is returned as NULL for some test case */
I would like to know where I can get the documentation of these APIs. I have
googled, but it did not get me any usefule links.I want to know if it is
valid for these APIs to return NULL values under some conditions,which means
I would need to check the validity of the pointers before using them.
Thanks and Regards,
Ramanan
I have a question in Powerpoint API. I am opening a powerpoint using COM
programming as follows
CComPtr<PowerPoint:resentations> presentations;
/* pptApplication is already set to valid pointer */
hr = pptApplication->get_Presentations(&presentations);
CComPtr<PowerPoint::_Presentation> thePresentation;
hr = presentations->Open((BSTR)szFileName, msoTrue, msoFalse, msoTrue,
&thePresentation);
/* thePresentation is returned as NULL for some test case*/
BSTR szName;
hr = thePresentation->get_Name(&szName);
/* szName is returned as NULL for some test case */
I would like to know where I can get the documentation of these APIs. I have
googled, but it did not get me any usefule links.I want to know if it is
valid for these APIs to return NULL values under some conditions,which means
I would need to check the validity of the pointers before using them.
Thanks and Regards,
Ramanan