I am trying to get the HWND to the conversation window.. here's what I do...
PLUGIN_PARAM plParam;
IMessengerWindow *pIMessengerWindow = NULL;
plParam.iConversationWnd->QueryInterface(IID_IMessengerConversationWnd, (void **)&pIMessengerWindow);
It stops at the last line...
the same method worked for the iMessengerObj in the Initialize() function.. I did:
iMessengerObj->QueryInterface(IID_IMessenger, (void **)&pIMessenger);
Is there anything I do wrong?
Thanks.