SmartFTP FTP Library
IFTPParser Interface

IFTPParser interface.

IFTPParser
IDL
interface IFTPParser : IUnknown;

C++

#import "libid:7A3A786C-EB8C-43b3-BC10-8D09ACF5D195" version("1.5")
// Note: Uncomment for Microsoft Visual Studio 6.0
//#import "C:\Program Files\SmartFTP FTP Library\sfFTPLib.dll"

::CoInitializeEx(NULL, COINIT_MULTITHREADED);
IFTPParserPtr FTPParser;

HRESULT hr = FTPParser.CreateInstance(__uuidof(sfFTPLib::FTPParser));
if (SUCCEEDED(hr))
{
  _bstr_t bstrLine = L"-rw-------   1 user group        3907 Feb 21 13:55 finger.txt";

  IFTPItem *pFTPItem;
  if(FTPParser->ParseLine(bstrLine, sfFTPLib::ftpParserFormatUNIX, &pFTPItem) == VARIANT_TRUE)
  {
  }
}
IFTPParser Methods 
Description 
This is Initialize, a member of class IFTPParser. 
This is ParseLine, a member of class IFTPParser. 
What do you think about this topic? Send feedback!
Copyright (c) by SmartSoft Ltd. All rights reserved.