How to use c# Dll in vc++?

Your C# assembly needs the ComVisible attribute (among a few other things).

[assembly: ComVisible(true)] 

There’s a guide to doing this here.

Leave a Comment