A little challenge for Windows API enthusiasts and COM/VBA experts:
Has anyone ever successfully read type library information (e.g., class and method names) from a COM DLL in VBA, using Windows APIs like LoadTypeLibEx?
My attempts to use it without too much effort were unsuccessful.
I came across a potential solution here:
https://www.mrexcel.com/board/threa...nto-a-4-column-long-list.1256225/post-6172844
However, this approach seems overly complex for my use case, so I decided to take a detour and implemented a solution via .NET, which gives me easier access to type information.
The downside of the .NET variant is that it requires a registered COM DLL – which I would prefer to avoid. The goal is to call everything directly from VBA, without additional components.
Has anyone managed to read class names and method signatures directly from a COM DLL in VBA (via ITypeLib / ITypeInfo etc.), ideally as simple string output?
Has anyone ever successfully read type library information (e.g., class and method names) from a COM DLL in VBA, using Windows APIs like LoadTypeLibEx?
My attempts to use it without too much effort were unsuccessful.
I came across a potential solution here:
https://www.mrexcel.com/board/threa...nto-a-4-column-long-list.1256225/post-6172844
However, this approach seems overly complex for my use case, so I decided to take a detour and implemented a solution via .NET, which gives me easier access to type information.
The downside of the .NET variant is that it requires a registered COM DLL – which I would prefer to avoid. The goal is to call everything directly from VBA, without additional components.
Has anyone managed to read class names and method signatures directly from a COM DLL in VBA (via ITypeLib / ITypeInfo etc.), ideally as simple string output?