quote:
Originally posted by allex87
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.
I know it's been a short while since this has been read, but I can tell you what you've done wrong... you've used a NULL pointer to point to the interface returned. At least, I think this is what's causing it.