Message 1 of 6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
If I call this function:
CComPtr<Document> pDoc;
HRESULT hRes = pInvApp->get_ActiveDocument(&pDoc);
I get an S_OK result even if no document is open.
Does that mean that I should always check both the hRes and the &p... in all get_ calls which initialize a pointer?
Solved! Go to Solution.