Sample VC6 source not inspiring.... - WeOnlyDo Discussion board

Sample VC6 source not inspiring.... (wodSFTP / wodSFTP.NET / wodSFTPdll)

by yumcious, Wednesday, March 23, 2005, 16:20 (7186 days ago)

Hi
I just purchased the wodsFTPdll VC edition. I thought when I downloaded the real mccoy product, I'll get some meatier sample sources. I was a little disappointed.

I'm looking for samples on how to generate/load private/public keys for a SSH ftp connection using VC++.

The write up for the wodskey component is hinting that I should be writing another app to do this key management? Aren't there any utilities to do this without any more coding than is necessary?

Pls help with a nice meaty sample, thanking you in advance.

Cheers
KS

Re: Sample VC6 source not inspiring....

by wodSupport, Wednesday, March 23, 2005, 16:35 (7186 days ago) @ yumcious

Yum,

you're right, wodSFTPdll comes only with one VC sample, so that less experienced users choose ActiveX instead :) I will write one sample to generate/load keys and include it in distribution, give me a day for this please.

Re: Sample VC6 source not inspiring....

by yumcious, Friday, March 25, 2005, 03:23 (7185 days ago) @ wodSupport

Yum,

you're right, wodSFTPdll comes only with one VC sample, so that less experienced users choose ActiveX instead :) I will write one sample to generate/load keys and include it in distribution, give me a day for this please.

Hi
No pressure intended here. But where's the sample? :)

Cheers
KS

Re: Sample VC6 source not inspiring....

by wodSupport, Friday, March 25, 2005, 10:08 (7185 days ago) @ yumcious

I'm working on it. If you're in a hurry, this is basic sample to initialize wodKeys, should be easy after this:
[code]#include <stdio.h>
#include <windows.h>
#include <objbase.h>

// import wodKeys
#import D:\WeOnlyDo\wodSFTP\Code\Code\KeyPair\Debug\wodKeys.dll no_namespace named_guids
#include Debug/wodKeys.tlh

#include <atlbase.h>
CComModule _Module; // dummy required to utilize atlcom.h
#include <atlcom.h>


int main(int argc, char *argv[])
{
IKeysPtr pKeys;

HRESULT hr = NULL;
CoInitialize (NULL);

hr = pKeys.CreateInstance (CLSID_Keys, NULL);
if (FAILED (hr))
{
_com_error comErr (hr);
printf ( Unable to load wodKeys interface.
Err # u: s , hr, comErr.ErrorMessage () );
CoUninitialize ();
return 99;
}


pKeys.Release();
CoUninitialize ();

return 0;
}
[/code]

Re: Sample VC6 source not inspiring....

by wodSupport, Sunday, March 27, 2005, 09:30 (7183 days ago) @ wodSupport

We have added small sample that creates keys and included it in the setup package. Please download it again, or request update if you're licensed user.