Watch, Follow, &
Connect with Us

Please visit our new home
community.embarcadero.com.


Welcome, Guest
Guest Settings
Help

Thread: Accessing .NET DLLs from Delphi



Permlink Replies: 17 - Last Post: Sep 11, 2017 9:25 AM Last Post By: Chad Hower
Matthew Kinney

Posts: 5
Registered: 4/18/99
Accessing .NET DLLs from Delphi
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 3, 2015 10:53 AM
We have been using Robert Giesecke's Unmanaged Exports to access our .NET DLLs from Delphi and it has been working pretty good; however, it is sometimes a pain to have to decorate the functions in the DLL, etc. The Unmanaged Exports has basically allowed us to stay with Delphi while taking advantage of .NET for many things that aren't as feasible (or doable at all), or as well documented in Delphi in our opinion.

I have seen a few other options such as Hydra and Crosstalk and was wondering of any opinions the group may have on them. Any glaring issues, performance problems, limitations--Crosstalk would be perfect since we usually only do non-visual things with the .NET libraries, but I have to admit being a little wary of AtoZed as opposed to RemObjects. The option of using Hydra to use some of the fantastic visual .NET pieces is a very interesting possibility.

Figured I would reach out to see if anyone had any direct experience or input before investigating these options or deciding to just stay with the unmanaged exports option.

Thanks in advance for any input or ideas!

Cheers,
Matt
Dan Barclay

Posts: 855
Registered: 11/9/03
Re: Accessing .NET DLLs from Delphi
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 3, 2015 10:57 AM   in response to: Matthew Kinney in response to: Matthew Kinney
Matthew Kinney wrote:

I have seen a few other options such as Hydra and Crosstalk and was
wondering of any opinions the group may have on them. Any glaring
issues, performance problems, limitations--Crosstalk would be perfect
since we usually only do non-visual things with the .NET libraries,
but I have to admit being a little wary of AtoZed as opposed to
RemObjects. The option of using Hydra to use some of the fantastic
visual .NET pieces is a very interesting possibility.

Figured I would reach out to see if anyone had any direct experience
or input before investigating these options or deciding to just stay
with the unmanaged exports option.

I have not used any of the above, but thought I'd pass on this video
recently posted.

https://www.youtube.com/watch?v=_WbkIAsKIew

I understand there is an evaluation version of Crosstalk and it's
pretty straightforward. I just have no personal experience.

Dan

Rael Bauer

Posts: 214
Registered: 10/10/02
Re: Accessing .NET DLLs from Delphi
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 3, 2015 2:59 PM   in response to: Matthew Kinney in response to: Matthew Kinney
On 2015/09/03 07:53 PM, Matthew Kinney wrote:

Maybe this will make things a bit easier for you:

http://managed-vcl.com/

-Rael
Rob Uttley

Posts: 4
Registered: 11/15/01
Re: Accessing .NET DLLs from Delphi
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 24, 2015 4:18 AM   in response to: Rael Bauer in response to: Rael Bauer
Looks like that one came to halt around Delphi XE3 time. :-(

Rael Bauer wrote:
On 2015/09/03 07:53 PM, Matthew Kinney wrote:

Maybe this will make things a bit easier for you:

http://managed-vcl.com/

-Rael
Rael Bauer

Posts: 214
Registered: 10/10/02
Re: Accessing .NET DLLs from Delphi
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 6, 2015 11:16 AM   in response to: Rob Uttley in response to: Rob Uttley
On 2015/09/24 01:18 PM, Rob Uttley wrote:
Looks like that one came to halt around Delphi XE3 time. :-(

Rael Bauer wrote:
On 2015/09/03 07:53 PM, Matthew Kinney wrote:

Maybe this will make things a bit easier for you:

http://managed-vcl.com/

-Rael

Whenever I have contacted the author (including recently), she responds
promptly and with good information. I do believe the project is still
maintained, although there may not be new features added.

Best to contact directly if you are interested!

Regards
Rael
Olaf Hess

Posts: 11
Registered: 10/10/08
Re: Accessing .NET DLLs from Delphi
Click to report abuse...   Click to reply to this thread Reply
  Posted: Aug 23, 2017 12:51 PM   in response to: Rael Bauer in response to: Rael Bauer
On the site it says "Site will be closed in September, 2017".
The full version of the components (Delphi 5 to XE3) can be downloaded for free, see
http://www.managed-vcl.com/news.php

Rael Bauer wrote:
On 2015/09/03 07:53 PM, Matthew Kinney wrote:

Maybe this will make things a bit easier for you:

http://managed-vcl.com/

-Rael
Bruce McGee

Posts: 1,716
Registered: 9/30/99
Re: Accessing .NET DLLs from Delphi
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 4, 2015 6:39 AM   in response to: Matthew Kinney in response to: Matthew Kinney
I'm not wild about the overhead of COM Interop, but this is a fairly
universal solution:

http://chapmanworld.com/2015/09/03/com-object-written-in-c-consumed-in-delphi/

--
Regards,
Bruce McGee
Glooscap Software
Bruce McGee

Posts: 1,716
Registered: 9/30/99
Re: Accessing .NET DLLs from Delphi
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 4, 2015 10:37 AM   in response to: Bruce McGee in response to: Bruce McGee
Bruce McGee wrote:

I'm not wild about the overhead of COM Interop, but this is a fairly
universal solution:

http://chapmanworld.com/2015/09/03/com-object-written-in-c-consumed-in-delphi/

An additional piece of information that I didn't know about before:

https://www.reddit.com/r/delphi/comments/3jj89x/com_object_written_in_c_consumed_in_delphi/

--
Regards,
Bruce McGee
Glooscap Software
Poul Halgaard

Posts: 1
Registered: 11/16/98
Re: Accessing .NET DLLs from Delphi
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 7, 2015 4:03 AM   in response to: Matthew Kinney in response to: Matthew Kinney
I use Hydra and it works. (I use only non visual, so I have not tried the visual part)
It does have quite a steep learning curve! Was a bit frustrated. It does not help that it can do so much (much more than I need). When you have your working first example it does not take long to add new stuff to it.
CrossTalk may be ok. It seems to be a smaller product, but it can execute non-visual code and if that is all you need maybe it will be easier to get the first usable result?
The assistance you get from a tool is worth the start-up-trouble/price I think.

Rgds Poul Halgaard
Matthew Kinney

Posts: 5
Registered: 4/18/99
Re: Accessing .NET DLLs from Delphi
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 9, 2015 9:26 AM   in response to: Poul Halgaard in response to: Poul Halgaard
Poul Halgaard wrote:
I use Hydra and it works. (I use only non visual, so I have not tried the visual part)
It does have quite a steep learning curve! Was a bit frustrated. It does not help that it can do so much (much more than I need). When you have your working first example it does not take long to add new stuff to it.
CrossTalk may be ok. It seems to be a smaller product, but it can execute non-visual code and if that is all you need maybe it will be easier to get the first usable result?
The assistance you get from a tool is worth the start-up-trouble/price I think.

Rgds Poul Halgaard

Thanks for all the input--I think I will evaluate Hydra and Crosstalk and report back with findings. I don't mind the learning curve on Hydra if it can do so much more and the folks at RemObjects have always been pretty top-notch to deal with.
Alexandre Machado

Posts: 1,682
Registered: 8/10/13
Re: Accessing .NET DLLs from Delphi
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 6, 2015 2:42 PM   in response to: Matthew Kinney in response to: Matthew Kinney
Matthew Kinney wrote:
We have been using Robert Giesecke's Unmanaged Exports to access our .NET DLLs from Delphi and it has been working pretty good; however, it is sometimes a pain to have to decorate the functions in the DLL, etc. The Unmanaged Exports has basically allowed us to stay with Delphi while taking advantage of .NET for many things that aren't as feasible (or doable at all), or as well documented in Delphi in our opinion.

I have seen a few other options such as Hydra and Crosstalk and was wondering of any opinions the group may have on them. Any glaring issues, performance problems, limitations--Crosstalk would be perfect since we usually only do non-visual things with the .NET libraries, but I have to admit being a little wary of AtoZed as opposed to RemObjects. The option of using Hydra to use some of the fantastic visual .NET pieces is a very interesting possibility.

Figured I would reach out to see if anyone had any direct experience or input before investigating these options or deciding to just stay with the unmanaged exports option.

Thanks in advance for any input or ideas!

Cheers,
Matt

Hi Matt,

You can try CrossTalk for free. The trial version never expires and you actually can test your solution, with REAL code using the trial version. The only limitation is that it stops working after 5 minutes (time starts counting every time your application starts).

Current version is 2.0.8 (it has a few known issues because we have introduced many new features). Version 2.0.9 is going to be released later today, including Delphi 10 Seattle support.

You can find more information about CrossTalk here: http://ww2.atozed.com/CrossTalk/

Also, watch this introductory video. You will be able to use CrossTalk in 5 minutes: http://ww2.atozed.com/CrossTalk/Videos/Intro/index.html

If you have any issues, please let us know.

Regards
Bismark Appah

Posts: 15
Registered: 3/13/15
Re: Accessing .NET DLLs from Delphi
Click to report abuse...   Click to reply to this thread Reply
  Posted: Aug 16, 2017 10:36 PM   in response to: Matthew Kinney in response to: Matthew Kinney
Matthew Kinney wrote:
We have been using Robert Giesecke's Unmanaged Exports to access our .NET DLLs from Delphi and it has been working pretty good; however, it is sometimes a pain to have to decorate the functions in the DLL, etc. The Unmanaged Exports has basically allowed us to stay with Delphi while taking advantage of .NET for many things that aren't as feasible (or doable at all), or as well documented in Delphi in our opinion.

I have seen a few other options such as Hydra and Crosstalk and was wondering of any opinions the group may have on them. Any glaring issues, performance problems, limitations--Crosstalk would be perfect since we usually only do non-visual things with the .NET libraries, but I have to admit being a little wary of AtoZed as opposed to RemObjects. The option of using Hydra to use some of the fantastic visual .NET pieces is a very interesting possibility.

Figured I would reach out to see if anyone had any direct experience or input before investigating these options or deciding to just stay with the unmanaged exports option.

Thanks in advance for any input or ideas!

Cheers,
Matt

The .Net Runtime Library for Delphi will be a good library for you. It will allow you to access all the .Net Framework Classes as well as access external .Net dll assemblies types and its members without registering as COM

For more information, go to https://crystalnet-tech.com/RuntimeLibrary/RuntimeLibrary4Delphi.aspx

Edited by: Bismark Appah on Aug 16, 2017 10:50 PM

Edited by: Bismark Appah on Aug 16, 2017 11:48 PM

Chad Hower

Posts: 533
Registered: 3/2/07
Re: Accessing .NET DLLs from Delphi [Edit]
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 4, 2017 6:37 AM   in response to: Bismark Appah in response to: Bismark Appah
On 8/17/2017 2:48 AM, Bismark Appah wrote:
Matthew Kinney wrote:
We have been using Robert Giesecke's Unmanaged Exports to access our .NET DLLs from Delphi and it has been working

Try CrossTalk:

http://www.atozed.com/crosstalk/

It will let you use .NET code directly and easily from Delphi.
Eugene Mayevski

Posts: 1
Registered: 2/14/10
Re: Accessing .NET DLLs from Delphi [Edit]
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 4, 2017 5:52 PM   in response to: Chad Hower in response to: Chad Hower
Chad Hower wrote:
On 8/17/2017 2:48 AM, Bismark Appah wrote:
Matthew Kinney wrote:
We have been using Robert Giesecke's Unmanaged Exports to access our .NET DLLs from Delphi and it has been working

Try CrossTalk:

http://www.atozed.com/crosstalk/

The site doesn't exactly work for me - the balls are jumping as if the site is being loaded, but nothing happens after that. A temporary glitch?
Rudy Velthuis (...


Posts: 7,591
Registered: 9/22/99
Re: Accessing .NET DLLs from Delphi [Edit]
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 4, 2017 11:26 PM   in response to: Eugene Mayevski in response to: Eugene Mayevski
Eugene Mayevski wrote:


The site doesn't exactly work for me - the balls are jumping as if
the site is being loaded, but nothing happens after that. A temporary
glitch?

Works for me.

--
Rudy Velthuis http://www.rvelthuis.de

"A computer lets you make more mistakes faster than any invention
in human history - with the possible exceptions of handguns and
tequila." -- Mitch Radcliffe
Remy Lebeau (Te...


Posts: 8,950
Registered: 12/23/01
Re: Accessing .NET DLLs from Delphi [Edit]
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 5, 2017 12:19 PM   in response to: Rudy Velthuis (... in response to: Rudy Velthuis (...
Rudy Velthuis (TeamB, MVP) wrote:

Works for me.

Same here.

--
Remy Lebeau (TeamB)
Chad Hower

Posts: 533
Registered: 3/2/07
Re: Accessing .NET DLLs from Delphi [Edit]
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 11, 2017 9:25 AM   in response to: Eugene Mayevski in response to: Eugene Mayevski
On 9/4/2017 8:52 PM, Eugene Mayevski wrote:

The site doesn't exactly work for me - the balls are jumping as if the site is being loaded, but nothing happens after that. A temporary glitch?

Try Ctrl-F5 it - but works for me fine...
Bismark Appah

Posts: 15
Registered: 3/13/15
Re: Accessing .NET DLLs from Delphi [Edit]
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 6, 2017 10:56 PM   in response to: Chad Hower in response to: Chad Hower
Chad Hower wrote:
On 8/17/2017 2:48 AM, Bismark Appah wrote:
Matthew Kinney wrote:
We have been using Robert Giesecke's Unmanaged Exports to access our .NET DLLs from Delphi and it has been working

Try CrossTalk:

http://www.atozed.com/crosstalk/

It will let you use .NET code directly and easily from Delphi.

I prefer the .Net Runtime Library for Delphi which is easy to use and cheaper. You can access all the .Net Framework Library as well as access an external .net dll with ease. The library contains tools to generate .net dll assemblies or .net web services into Delphi codes which uses the runtime library. There are many features and functionalities in the Runtime Library which is worth exploring.

For more Information, go to https://crystalnet-tech.com/RuntimeLibrary/RuntimeLibrary4Delphi.aspx

Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02