Passing vector struct between C++ and C#

后端 未结 2 1597
感动是毒
感动是毒 2021-01-06 16:02

I have c++ unmanaged code that i want to access from c#. So i followed some tutorials and i build a dll for my project (only one class btw). Now i want to use it from c#, an

2条回答
  •  迷失自我
    2021-01-06 16:52

    I think you should just pass Arrays of your types and then convert them to vector's or List's in the relative functions.

    What it could also be is the fact you referenced a static externINTcalibrate_to_file() and in C++ it is VOIDcalibrate_to_file()

    UPDATE: And I think you are missing the DLLEXPORT tags on your functions?

提交回复
热议问题