No value in PrivateKey property. - WeOnlyDo Discussion board

No value in PrivateKey property. (General questions)

by Rob, Friday, July 06, 2007, 14:23 (6350 days ago)

Hi Guys,

I'm trying to use the DLL's in Microsoft Dynamics AX, wich has its own language called X++.
And it can use DLL's.
i wrapped the DLL's.

PRO_Sftp_SFTPCom sftp = new PRO_Sftp_SFTPCom();
PRO_Sftp_KeyKeys keys = new PRO_Sftp_KeyKeys();
comVariant privateKey = new comVariant();
str test;
;
keys.Load('c:\DSAkey.txt');

sftp.Authentication(2);

sftp.Hostname('localhost');
sftp.Login('ftp');

test = keys.PrivateKey(1);

privateKey.bStr(keys.PrivateKey(1));
sftp.PrivateKey(privateKey);

but i get no value from keys.PrivateKey(1) ??
in PrivateKeyData there are a buch of numbers!
what am i missing here?

thnx,
Rob


Complete thread: