Multiple simultanous IwodSSHCom objects and notifi (General questions)
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
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