COM or C++/CLI layer for long-term maintenance?

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/cpp

Our great sponsors
  • SonarLint - Deliver Cleaner and Safer Code - Right in Your IDE of Choice!
  • Scout APM - Less time debugging, more time building
  • SaaSHub - Software Alternatives and Reviews
  • CsWin32

    A source generator to add a user-defined set of Win32 P/Invoke methods and supporting types to a C# project.

    Would something like CsWin32 help?

  • cppcomponents

    Allows you to write binary components in C++11 that can be used across different compilers and standard libraries

    You may find https://github.com/jbandela/cppcomponents useful. A portable C++11 library allowing COM components to be created from a C++ library. Note the portable, you can 100% make COM components on POSIX as well.

  • SonarLint

    Deliver Cleaner and Safer Code - Right in Your IDE of Choice!. SonarLint is a free and open source IDE extension that identifies and catches bugs and vulnerabilities as you code, directly in the IDE. Install from your favorite IDE marketplace today.

  • CppSharp

    Tools and libraries to glue C/C++ APIs to high-level languages

    I would give CppSharp a crack first. It generates a .net wrapper using pinvoke.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts