Re: Using IwodFtpNotify in C++/MFC - WeOnlyDo Discussion board

Re: Using IwodFtpNotify in C++/MFC (General questions)

by wodSupport, Thursday, October 13, 2005, 17:48 (6980 days ago) @ carl

Carl,

IwodFtpNotify isn't C++ class, it should be interface, so you should initialize it somehow with CreateDispatch or whatever API is used in MFC. When you do that, you will be able to pass it's handle to SetCertificate property.
If you can send me your code (to techsupport@weonlydo.com) I'll try to see if we can convert it to interface class.

Another question: Is there a way to check if Connect() is done after calling it?

You can check state using GetState, if it says 'Connected' then Connect is finished. However, in nonblocking mode you should wait for Connected event, in blocking mode Connect will not return at all before it connects, so both ways there's regular way to determine when connection is established.


Complete thread: