SmartFTP FTP Library
Example

C++

#import "libid:7A3A786C-EB8C-43b3-BC10-8D09ACF5D195" version("1.5")
sfFTPLib::IDSAKeyPtr pDSA;
if(SUCCEEDED(pDSA.CreateInstance(__uuidof(sfFTPLib::DSAKey))))
{
  DWORD t0 = ::GetTickCount();
  int nBits = 1024;
  TRACE(_T("Generating %d bits DSA Key\n"), nBits);
  DRSA->Generate(nBits);
  TRACE(_T("Key generation took %d ms\n"), ::GetTickCount() - t0);
}
Copyright (c) by SmartSoft Ltd. All rights reserved.