I know that I am missing something simple, I have no experience with these things.
I would like to do this in an interface in idl
[id(5), helpstring("Returns true if the object is in a valid state.")]
HRESULT IsValid([out, retval] boolean bValid);
However, this gives: [out] the parameter is not a pointer.
OK, I get that.
However, in C # code that implements this, I cannot return bool * from the IsValid () method, because it is unsafe.
What is the correct way to return a boolean?
source
share