Login  
Search All Forums
Dart Home | C++ Professional Toolkit | Custom Development Reply | C++ Professional Toolkit Topics | Forums   
AuthorForum: C++ Professional Toolkit
Topic: Wait for event of file uploading
alex

From: Givatime, Israel
Posts: 2
Member Since: 06/26/03
posted June 26, 2003 1:18 PM

Hi,
I have the concole application.
The events are only fired for the the start of retrieve command but I need to know when the transfer is complete... I have to suspend the application till the RecvEvent() will finish its work. But I can't use WIN32 Wait functions, not Sleep and even boolean variable. They don't let to call RecvEvent()(They run in the same thread). I succeded to suspend finishing application only by using MessageBox(), but it's not good. It should finish in itself.
Thanks in advance,
Alex
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted June 27, 2003 11:18 AM

Hi Alex,
The OnTransfer event should fire with an nBlockCnt = 0 when the transfer has finished.

Or, if you are not specifying a local file in the Retrieve call, the OnRecv event will fire with vRecvData = null.

Hope it helps,
-ken
Reply | C++ Professional Toolkit Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX