Using a .NET library (DLL) in python/C++

JDias 136 Reputation points
2021-02-02T13:54:37.717+00:00

I have a group of DLL libraries from an application, not developed by me.
These libraries can function, as references, in a Visual Studio project (using .NET Framework 4), and I have already done that.

How may I use these libraries in a python program, using ctypes? Or I have to include another python module?

Does these libraries need to be registered (RegAsm and RegSrv32)?

How may I use such libraries in normal C++ (not clr)?

Developer technologies | C++
Developer technologies | Visual Studio | Other
Developer technologies | C#
{count} votes

Accepted answer
  1. Dylan Zhu-MSFT 6,426 Reputation points
    2021-02-03T02:36:18.87+00:00

    Hi JDias,

    Maybe these documents can help you:

    Best Regards,
    Dylan


    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our **documentation to enable e-mail notifications if you want to receive the related email notification for this thread.**

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.