EldoS | Feel safer!

Software components for data protection, secure storage and transfer

PasswordChangeRequest

Also by EldoS: MsgConnect
Cross-platform protocol-independent communication framework for building peer-to-peer and client-server applications and middleware components.
#14097
Posted: 08/03/2010 12:37:17
by Mike Scriven (Standard support level)
Joined: 05/19/2006
Posts: 102

I'm using SBB 6 ActiveX version 7.1.163 and I need to use the ElSimpleSSHClient.OnPasswordChangeRequest event but the documentation says that it's not implemented in ActiveX. Is that correct?
#14099
Posted: 08/03/2010 12:50:57
by Ken Ivanov (EldoS Corp.)

Thank you for contacting us.

Hmm, the documentation seems to be a bit obsolete. The event is actually implemented and supported by all the SBB editions (ActiveX, VCL, .NET).
#14100
Posted: 08/03/2010 12:58:40
by Mike Scriven (Standard support level)
Joined: 05/19/2006
Posts: 102

Great, thanks.
#14101
Posted: 08/03/2010 13:18:41
by Mike Scriven (Standard support level)
Joined: 05/19/2006
Posts: 102

Can you give me the parameters please. I have (C++):

OnPasswordChangeRequest(LPCTSTR strPompt, LPCTSTR strNewPassword, BOOL FAR* bCancel)

but I don't think the strNewPassword is correct. Should it be a LPDISPATCH?

Thanks,
Mike
#14102
Posted: 08/03/2010 13:31:45
by Ken Ivanov (EldoS Corp.)

It depends on the exact COM/ActiveX wrapper being used.

The IDL declaration looks like the following:
[id(0x00000106)]
void OnPasswordChangeRequest([in] BSTR Prompt, [in, out] BSTR * NewPassword, [in, out] VARIANT_BOOL * Cancel);

So it is likely that strNewPassword should be declared as LPCTSTR * strNewPassword (if strPrompt is returned as LPCTSTR).
#14111
Posted: 08/04/2010 12:20:32
by Mike Scriven (Standard support level)
Joined: 05/19/2006
Posts: 102

Actually Prompt is a string, not a BSTR but NewPassword needs a BSTR returned, so this is my function protype:

OnPasswordChangeRequest(LPCTSTR strPrompt, BSTR* strNewPassword, BOOL FAR* bCancel)

Thanks for your help,
Mike
Also by EldoS: Rethync
The cross-platform framework that simplifies synchronizing data between mobile and desktop applications and servers and cloud storages

Reply

Statistics

Topic viewed 866 times

Number of guests: 2, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!