简体   繁体   中英

Using C++ libraries from C#

I have access to c++ source code and as default it compiles to static *.lib .

Is there a simplier way to do it than writing C++/CLI wrapper?

I'm afraid you're going to have to write a C++/CLI wrapper as .lib isn't executable code.

Here's one example of how to do it: Here

您可以使用DllImport属性导入导出的函数。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM