Unfortunately it doesn't help. It seems that regasm doesn't recognize .NET 5 assemblies. Regsvr32 does, and it registers the component / interface / library, but no TLB is generated. That makes it virtually useless.
From Exposing .NET Core components to COM | Microsoft Docs :
Unlike in .NET Framework, there is no support in .NET Core or .NET 5+ for generating a COM Type Library (TLB) from a .NET assembly. The guidance is to either manually write an IDL file or a C/C++ header for the native declarations of the COM interfaces.
So now I'm investigating how to create / compile / use the correct IDL file. Should anyone have some good pointers for that, let me know
I was under the assumption that creating a COM component would still be as easy under .NET 5 as under the previous versions. We don't need real time at all.
This would be part of a conversion program, that will run on the client PCs (> 3000 clients, with all sorts of PCs and OS's). I wanted to avoid having to serialize objects on the Delphi side, and to deserialize them on the .NET side. I think that we will resort to creating a file (or a couple of files) in a folder, and when that is done running the conversion program on the client PC. That way we only have to install .NET 5 and the conversion program, which is even easier than using a queue.
Thank you for thinking with me for solutions!
I am going to do 1 more try, posting the same question on SO. Please don't be insulted If I find a solution I will post it here.
According to the replies on SO this is a dead end indeed.
We now are going to create classes in C# and in Delphi with all the same properties. We'll then serialize the Delphi classes to JSON, and deserialize them in C#.
For this I'm writing a code generator that will use a DSL to describe the classes. It's a work-around, but at least we'll get the work done.
This is for a conversion, so the Delphi side will serialize the objects in a folder, and the .NET part will deserialize it and handle it further.
It is a One Shot operation, so no need for fancy stuff there.
Hi All, I hope now this is the correct forum for suggestions. This Type bottoms need to be bigger and more precise so people did not get flagged for asking a suggestion that i found unnecessary for been flagged, If someone here knows any type of free code camp please share the resource I immensely trying to enhanced my knowledge and I know someone of you there knows some free learning resources.
This site its not all that. There are some people very intelligent who dont waste time and go to the point, not sure how they do but they manage to email me directly I like it with tons of creative stuff and very helpful. I suggest you to learn from them more maybe you can enhance your brain. They can give you more tips, Good luck
fault what you nonsense you talk about, somewhere someone knows about something free. No! your choices are limited and someone there knows something and maybe scare to share it. Its a GENERAL QUESTION! the world does not go around this channel only. people have the right to speak and look for different options! and maybe someone out there knows that option! Therefore thread the community of the way you express your self does not help this channel at all! the stupidity things you say or the idiotic don't make sense, the world don't circulate around you, its bigger
modified 18-Nov-21 20:25pm.
Last Visit: 31-Dec-99 18:00 Last Update: 23-Sep-23 23:24