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

JDias 71 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)?

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,193 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,010 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,761 questions
{count} votes

Accepted answer
  1. Dylan Zhu-MSFT 6,421 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.