Re: WodKeys GetPrivateKey returns an empty string - WeOnlyDo Discussion board

Re: WodKeys GetPrivateKey returns an empty string (General questions)

by Arun, Thursday, September 21, 2006, 17:20 (6436 days ago) @ wodDrazen

Hi

In your sample you do the following [code]ssh1.PrivateKey = key
[/code]. But if you look at the COM IDL file in C++ it shows:

[code]virtual HRESULT __stdcall put_PrivateKey (
enum SSHKeyTypes KeyType,
BSTR pVal ) = 0;[/code]

I pass in the BSTR pointer. But it always returns an empty string.

Can you show a C++ example?


Thanks
Arun


Complete thread: