3 ms·
> C++ has standardized ABIs but you just don't see people dynamically loading a C++ shared object, obtaining a pointer to a C++ object and calling its member fu
by jcelerier 4y ago
> C++ has standardized ABIs but you just don't see people dynamically loading a C++ shared object, obtaining a pointer to a C++ object and calling its member functions
... Sorry what? This is exactly how every c++ plugin system I've worked with works. There are even some industry standards that work like this, e.g. VST3: https://steinbergmedia.github.io/vst3_dev_portal/pages/Technical+Documentation/VST+Module+Architecture/Index.html https://steinbergmedia.github.io/vst3_dev_portal/pages/Techn... ; there are dozens of companies that provide hosts for such plugins and thousands that provide the actual plugins, all built with different toolchains, compilers etc, so obviously it works
- gavinray 4y agoBut VST3 uses a COM-like protocol which is quite a bit different than an unstructured C++ ABI though You obtain an IUnknown and query for the supported interfaces