79471402

Date: 2025-02-27 01:15:35
Score: 0.5
Natty:
Report link

Simon Mourier's comments is the answer is used. I have decompiled the generated tlb dll back into C# using ILSpy . Then pseudo-manually and with help of AI to speed it up I converted attributes on the interfaces to using GeneratedComInterface instead of ComImport. Fortunately, the COM interface I am using is relatively basic, so this wasn't that difficult with no custom marshalling required.

Simon's comment provides a link with documentation for the basic cases I needed: https://learn.microsoft.com/en-us/dotnet/standard/native-interop/comwrappers-source-generation

Reasons:
  • Blacklisted phrase (0.5): I need
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: Palo