I have the following lines in my code:
LPUNKNOWN unkSinkPtr;
sinkPtr = new myClass();
unkSinkPtr = sinkPtr->GetIDispatch(FALSE);
GetIDispatch returns a pointer to the IDispatch object associated with the CCmdTarget object.
Do you know exactly where the memory gets allocated?
Is it in my code when I make that call...or is it within GetIDispatch?