Multiple simultanous IwodSSHCom objects and notifi - WeOnlyDo Discussion board

Multiple simultanous IwodSSHCom objects and notifi (General questions)

by Espen, Friday, September 19, 2008, 16:02 (5909 days ago)

I have several objects of type CCem. (CCem implements CCmdTarget)

Each CCem object has a IwodSSHCom m_SSH;

For example in: STDMETHODIMP CCem::XNotify::Received(IwodSSHCom *Owner, short ByteCount)

IwodSSHCom *Owner doesnt point to any of the m_SSH's in any of the CCem's. How can i tell which m_SSH triggered the event?

Same in Consample:
wodSSH_Connected(IwodSSHCom *SSH...);
SSH does not point to the cSSH created in main..

Hope this is possible to solve [:happy:]

Re: Multiple simultanous IwodSSHCom objects and no

by wodgrof, Friday, September 19, 2008, 17:44 (5908 days ago) @ Espen

Hi Espen,

There is a difference between cSSH and Owner pointer because IwodSSHCom in our sample is a MFC wrapper class. To determine which SSH object raised the event, compare event variable Owner with cSSH.m_lpDispatch member variable. m_lpDispatch is the pointer to the actual wodSSHCom object instance.

I hope this information helps.

Regards,
Grof