call unmanaged C++ code from C# using pinvoke

后端 未结 3 1326
南旧
南旧 2021-01-05 13:23

I have a unmanaged C++ dll for which I do not have access to code but have all methods declarations for.

Lets for simplicity say that .h looks like this:

<         


        
3条回答
  •  遥遥无期
    2021-01-05 14:12

    If you need to create a wrapper, take a look at swig.org. It will generate one for most high level language like C#.

    I just came across this program a few minutes ago while working the same problem that you are.

提交回复
热议问题