Topic "Import COM Lib/Net Assembly in Delphi"

Author Message
nenads
[View user's profile]

Joined: 2015-02-13
Posts: 2
Hallo
i have installed the portable exe and dll
and registered the DLL.
(as per instructions)

I can import the Com Lib in Delphi 2010/XE7 just fine
but it only shows the Interfaces without any
property or method.

With Delphi 2010 i can also import the .Net Assembly
but it has the same problems.
Delphi XE7 complains that "{} is not a valid Guid Value"
and will not import the .net assembly at all.

Does anybody know how to do a working import ?
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
nenads wrote:
I can import the Com Lib in Delphi 2010/XE7 just fine
but it only shows the Interfaces without any
property or method.

That's likely because WinSCP .NET assembly uses IDispatch interface to support scripting languages. So there's no type library.

Quote:
With Delphi 2010 i can also import the .Net Assembly
but it has the same problems.
Delphi XE7 complains that "{} is not a valid Guid Value"
and will not import the .net assembly at all.

How do you "import .NET assembly" in Delphi? I'm using C++ Builder, so maybe it has same/similar function, so I can try myself.
nenads
[View user's profile]

Joined: 2015-02-13
Posts: 2
Hi,
didnt see your reply until now..

import .net assembly is in
MainMenu - Component - Import Component -
a window opens where you have the options
Import a Type Library
Import a ActiveX Control
Import a .Net Library



as a workaround i will maybe just create a .net-dll
which calls winscp and does what i need
and import that dll instead of winscp..
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
If you manage to implement any assembly that can be edimport to Delphi, please send it to me for testing. I was not able to import anything. It either displays the error "{} is not a valid Guid Value" or just silently does nothing.
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