WinScpnet.dll used for C++

Advertisement

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
28,542
Location:
Prague, Czechia

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.

Reply with quote

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

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
28,542
Location:
Prague, Czechia

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

Reply with quote

Advertisement

You can post new topics in this forum