GetItem method - WeOnlyDo Discussion board

GetItem method (wodFtpDLX / wodFtpDLX.NET)

by Oleg, Wednesday, August 22, 2007, 03:38 (6304 days ago)

Can't get to work GetItem method. VC++ code is:

IDirItem DirItem;
VARIANT var;
var.vt = VT_INT;
var.intVal = 0;
DirItem = DirItems.GetItem(var);

It course COleDispatchException with empty discription information.
But if I use:

VARIANT var;
var.vt = VT_BSTR;
var.bstrVal = _T( testfile );
DirItem = DirItems.GetItem(var);

It is working. What can be the problem?

Re: GetItem method

by wodSupport, Wednesday, August 22, 2007, 10:10 (6304 days ago) @ Oleg

Oleg,

what if you use use VT_I4 and var.lVal?

Kreso

Re: GetItem method

by Oleg, Wednesday, August 22, 2007, 10:42 (6304 days ago) @ wodSupport

It works.
Thank you.