Interop assemblies containing certain constructs will cause a BadImageFormatException in .NET 4.0
Interop assemblies containing certain constructs will cause a BadImageFormatException in .NET 4.0
COM objects that don’t have the expected lifetime can cause chaos when combined with .NETs garbage collection system.
Thinking of adding some code to your DLLs DllMain function? STOP!
How do you find the unmanaged COM object that’s being referenced by a .NET object?
One of the tools that I write and maintain displays type information for COM objects hidden behind “handles” in Excel spreadsheets. The underlying objects can either support an interface that allows them to be richly rendered to XML, or the viewer will fall-back to using metadata and displaying the supported interfaces and their properties and methods. It [...]
Be careful when using the [<Guid("...")>] attribute on your COM-visible classes in F#. If you mistakenly use the curly-bracket delimited format for the GUID, regasm will silently, yes, silently, fail to add any CLSID entries for your class. That means it will be cocreatable by the prog ID, but not the CLSID. Ouch.
No doubt this will be [...]