I would like to use .NET classes in Delphi. I included mscorlib unit (which is a TLB) and want to create an instance of e.g. Assembly class. So I have:
uses mscorlib;
var myAssembly: _Assembly;
begin
myAssembly:=CoAssembly.Create;
...
end.
The application is compiled successfully, but when starting it I get an error message saying that the class is not registered.
Any idea how this can be solved?
By using mscorlib for delphi to call c#.
You can take a look at
JEDI
orDDNRuntime
.TJclClrHost
in JEDI.DDNRuntime
is wrapper for delphi to call c#.Features
DNICollection<DNKeyValuePair<TKey, TValue>>
such multi-level nesting).https://github.com/ying32/DDNRuntime-examples