CDispInvoke.Detachmethod
Detaches a Dispatch pointer.
Syntax
FUNCTION Detach () AS IDispatch PTR
Description
Detaches the Dispatch pointer from the class.
Remarks
Extracts and returns the encapsulated interface pointer, and then clears the encapsulated pointer storage to NULL. This removes the interface pointer from encapsulation. It is up to the caller to call Release on the returned interface pointer.
Reference
- Include file
CDispInvoke.inc - Defined in AfxNova/CDispInvoke.inc:614
- Documented in COM/CDispInvoke Class.md
- Topic: CDispInvoke Class