wuping
(wuping)
June 17, 2019, 12:01pm
1
I haven’t tried but would like to learn from experienced users on this question. We could consume a .NET class inside Island-Windows in the following way:
COM - wrap up the .NET class as a COM object
DLL - wrap up the .NET class as a DLL
Else? What would be a neat and clean way?
wuping
(wuping)
June 17, 2019, 2:12pm
4
Of course, Hydra would be a (best) option - but I thought Hydra currently doesn’t support Island Windows as Hydra HOST ?
mh
(marc hoffman)
June 17, 2019, 3:20pm
5
Hm, true, yes. then your only option for now would be to essentially do what Hydra would do — host the CLR yourself. sorry.
wuping
(wuping)
June 17, 2019, 3:32pm
8
Understand. Could I get a quick hint - Which part of Hydra framework should I peek, in order to learn the trick of “hosting CLR”?
EvgenyK
(Evgeny Karpov)
June 18, 2019, 8:53am
10
Hi,
you can review CLR support in Delphi sources
EvgenyK
(Evgeny Karpov)
June 18, 2019, 1:34pm
16
pls review Calling Managed .NET C# COM Objects from Unmanaged C++ Code article, it seems to be more suitable for you instead of porting Delphi stuff…
wuping
(wuping)
June 18, 2019, 2:02pm
17
@EvgenyK
Thank you for the heads up. So it is COM. En… I don’t like the registration step that we have to register the COM DLL with the system. How does Hyda find a way to access .NET assembly without relying COM?
.NET Runtime Library for Delpih allows loading .NET assembly without registration. Maybe I should take a peek.
mh
(marc hoffman)
June 18, 2019, 2:06pm
18
Hydra hosts the .NET runtime itself. You can have a look at how the Hydra/Delphi code does that and look at using the same APIs yourself, from Island.
1 Like
EvgenyK
(Evgeny Karpov)
June 18, 2019, 2:07pm
19
review code in THYFMXManagedModule.RegisterPlugins
- it shows how to enumerate .NET types
1 Like
EvgenyK
(Evgeny Karpov)
June 18, 2019, 2:15pm
20
1 Like
wuping
(wuping)
June 18, 2019, 2:27pm
21
Yes. This is exactly what I am looking for. Thank you very much!
1 Like