How can we expose a .NET public const to COM interop
- by JulienC
For historical reasons, we need to expose string constants in .NET through COM interface.
We managed to expose ENUM but we can't find a way to expose string const.
We try the following code :
<ComClass(ComClass1.ClassId, ComClass1.InterfaceId, ComClass1.EventsId)> _
Public Class ComClass1
#Region "COM GUIDs"
' These GUIDs provide the…