Import COM Lib/Net Assembly in Delphi

Advertisement

nenads
Joined:
Posts:
2

Import COM Lib/Net Assembly in Delphi

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 ?

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,454
Location:
Prague, Czechia

Re: Import COM Lib/Net Assembly in Delphi

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.

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.

Reply with quote

nenads
Joined:
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..

Reply with quote

martin
Site Admin
martin avatar

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.

Reply with quote

Advertisement

You can post new topics in this forum