Topic "COM methods not visible [solved]"

Author Message
piedmont
[View user's profile]

Joined: 2013-09-18
Posts: 4
Location: UK
Hi Martin,

I'm trying to use the COM version of the .NET wrapper. The dev environment is Microsoft Dynamics NAV (a version which supports only COM DLLs)

I've followed the installation instructions in https://winscp.net/eng/docs/library_install

I'm now able to see the DLL as an available variable type. However when i create variables of type 'WinSCP console interface .NET wrapper'.Session or SessionOptions, no methods or properties are visible/available. (The only type which has visible methods is ISessionEvents)

When we develop custom DLLs for Dynamics NAV (in Vis Studio), we have to specify both the DLL and methods to be COM visible - otherwise we get similar behaviour to the above.

Is there anything we can try to resolve this?

Many thanks in advance,
Piedmont

OS: Windows 2003
WinSCP version: 5.1.7.3446

Last edited by piedmont on 2013-09-23 10:41; edited 1 time in total
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
WinSCP .NET assembly has late binding interface, if that's what you ask about. If you need early binding interface, you can download the assembly source code and change WinSCP.Constants.ClassInterface to ClassInterfaceType.AutoDual.
_________________
Martin Prikryl
piedmont
[View user's profile]

Joined: 2013-09-18
Posts: 4
Location: UK
Thanks for your reply Martin.

RE: source code for the .NET assembly - is this the main source download, i.e. https://winscp.net/download/winscp517source.zip ?

I could't find a link to source code specific to the .NET assembly...

Kind regards
Piedmont
piedmont
[View user's profile]

Joined: 2013-09-18
Posts: 4
Location: UK
OK found now - in source code from latest Beta version - https://winscp.net/download/winscp524source.zip

Thank you
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
Did my suggestion work for you?
_________________
Martin Prikryl
piedmont
[View user's profile]

Joined: 2013-09-18
Posts: 4
Location: UK
Yes - thank you Martin - the methods and properties are now visible :D

Is there a way I can mark the topic as solved?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
Thanks for your feedback.

piedmont wrote:
Is there a way I can mark the topic as solved?

No, there's not.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License