PutData to create empty file - WeOnlyDo Discussion board

PutData to create empty file (General questions)

by Oleg, Thursday, August 16, 2007, 17:06 (6309 days ago)

Hi,
I am trying to use PutData to create empty file on FTP server.
Code is like this (VC++):

VARIANT var;
var.vt = VT_BSTR;
var.bstrVal = SysAllocString(_T( /test.txt ));
SFtp->PutData(_T( ), var);

But COleDispatchException occured.
What I am doing wrong?


Complete thread: