你好,
感谢在微软论他发帖。
如果是用C#调用Native C++
的话,可以考虑使用DllImport。
也可以将 Native C++
转成 C++/CLI,
你需要自己创建一个C++/CLI的工程,然后在里面添加对lib和dll的
reference ,然后用clr
编译完之后,就可以直接在C#中进行调用。
相关文档参照这里。
Best Wishes,
Jack Zhang
MSDN Community Support<br/> Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark
as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact <a href="mailto:MSDNFSF@microsoft.com">MSDNFSF@microsoft.com</a>