Using IwodFtpNotify in C++/MFC (General questions)
Hi,
I would like to handle the events using the IwodFtpNotify class. I'm unable to get the member functions of that class called. My code is the following:
CwodFtpDLXCom m_Ftp;
CwodFtpNotify *pm_notify;
pm_notify = new CwodFtpNotify();
//---> m_Ftp.putref_Notification(pm_notify);
//does not compile because putref_Notification is the following:
//void putref_Notification(LPDISPATCH newValue)
//trying other way (it compiles):
m_Ftp.putref_Notification(pm_notify->m_lpDispatch);
m_Ftp.put_Hostname(*host);
m_Ftp.put_Login(*user);
m_Ftp.put_Password(*passwd);
m_Ftp.put_Protocol(PROTOCOL_FTP);
VARIANT var;
var.vt = VT_ERROR;
m_Ftp.Connect(var,var,var);
Wait();
//but no event is fired.
Another question: Is there a way to check if Connect() is done after calling it? For example, a member function like IsDone() or something like that. I would like to perform this check along others inside the Wait() function.