AIMP Forum

AIMP for Windows => Дополнения / Addons => Плагины / Plugins => Topic started by: cubis123 on July 18, 2020, 01:39:00

Title: Provide a .TLB file (COM Type Library)
Post by: cubis123 on July 18, 2020, 01:39:00
How are the plugin SDK COM interfaces done? What is AIMP written in anyway, I'm assuming Delphi based on the provided headers?

Would it be possible to export a .TLB file describing those COM interfaces?
(http://docwiki.embarcadero.com/RADStudio/Rio/en/Working_with_Type_Libraries_Index)
(http://docwiki.embarcadero.com/RADStudio/Rio/en/GenTLB.exe)

Right now to write plugins in C# you can either use a C++/CLI wrapper like aimp_dotnet does or directly use the COM interfaces.
The problem with using the COM interfaces is that you have to write all the binding manually, which is significant amount of work.
Visual Studio comes with a tool that can generate those bindings automatically based on a .TLB file though, so if one could be provided as a part of the SDK it would make a C#/.NET integration much easier and less error-prone.
Title: Re: Provide a .TLB file (COM Type Library)
Post by: Artem on July 19, 2020, 09:06:31
Thank you.I will check it