J
jdyng77
Guest
Hi,
I have a naive question. Is it possible to define a method "Test" below (a snippet from an IDL file) that takes a CComPtr as an in-parameter? If not, I can stick to Test2, which accepts an IDispatch pointer, which will be converted to IMyInterface in the method implementation. I have made Test2 working. If Test is possible, then which one of Test and Test2 is better? Thanks for your guidance.
interface IGenerator : IDispatch{
[id(1)] HRESULT Test([in] CComPtr<IMyInterface> &sp);
[id(2)] HRESULT Test2([in] IDispatch* p);
};
Thanks.
JD
Continue reading...
I have a naive question. Is it possible to define a method "Test" below (a snippet from an IDL file) that takes a CComPtr as an in-parameter? If not, I can stick to Test2, which accepts an IDispatch pointer, which will be converted to IMyInterface in the method implementation. I have made Test2 working. If Test is possible, then which one of Test and Test2 is better? Thanks for your guidance.
interface IGenerator : IDispatch{
[id(1)] HRESULT Test([in] CComPtr<IMyInterface> &sp);
[id(2)] HRESULT Test2([in] IDispatch* p);
};
Thanks.
JD
Continue reading...