Hello,
I have a question about a certain function in the SDK. In the SDK documentation of ILayerList class, it is written :
virtual IDocumentLayer* QueryLayer(int32 n) const [pure virtual]
Return the n'th layer in this document.
Caller is responsible for calling Release().
Should I not use
InterfacePtr<IDocumentLayer> docLayer(myList->QueryLayer(n));
or
IDocumentLayer* docLayer = myList->QueryLayer(n);
...
docLayer->Release();
?