Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

WinSCP assembly classes implement IDispatch interface only (aka "late binding").
Guest

When using the WinSCP-5_13_2-Automation.zip and registering the dll. I can create the instance but try to access the function, the compiler report this error.

Error 3 error C2039: 'UserName' : is not a member of 'WinSCPnet::_SessionOptions' 20
Error 6 error C2039: 'SessionLogPath' : is not a member of 'WinSCPnet::_Session' 26
Error 4 error C2039: 'Password' : is not a member of 'WinSCPnet::_SessionOptions' 21
Error 8 error C2039: 'Open' : is not a member of 'WinSCPnet::_Session' 29
Error 2 error C2039: 'HostName' : is not a member of 'WinSCPnet::_SessionOptions' 19
Error 5 error C2039: 'GiveUpSecurityAndAcceptAnySshHostKey' : is not a member of 'WinSCPnet::_SessionOptions' 22
Error 10 error C2039: 'GetFiles' : is not a member of 'WinSCPnet::_Session' 35
Error 7 error C2039: 'DebugLogPath' : is not a member of 'WinSCPnet::_Session' 27
Error 12 error C2039: 'Close' : is not a member of 'WinSCPnet::_Session' 47
Error 11 error C2039: 'Check' : is not a member of 'WinSCPnet::_TransferOperationResult' 38
Error 9 error C2039: '_TransferMode' : is not a member of 'WinSCPnet::_TransferOptions' 34
Error 1 error C2039: '_Protocol' : is not a member of 'WinSCPnet::_SessionOptions' 18

Attach is the tlh for reference
martin

Re: WinScpnet.dll used for C++

Anonymous wrote:

Is there any code sample of WinScp COM Object for VC++ ?

No we do not have any. But the code would be the same as for any other COM object.
Guest

WinScpnet.dll used for C++

Is there any code sample of WinScp COM Object for VC++ ?