C ++如何导出函数以供C#调用 [英] C++ how to export functions for C# to call
本文介绍了C ++如何导出函数以供C#调用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有很多方法可以导出C ++函数供C#调用?这些C ++函数是在.h文件或静态库(.lib)中定义的.谢谢.
Is there many methods can export C++ functions for C# to call?These C++ functions are defined in .h files or Static library(.lib).Thank you.
推荐答案
你好,
您是直接从dll导出函数.在该主题中正确描述了如何在C#中制作C ++ DLL函数的原型:
使用不受管理的DLL函数 [
Hello,
You are export functions directly from dll. How to make prototype of C++ DLL functions in C# properly described in that topic:
Consuming Unmanaged DLL functions[^]
Regards,
Maxim.
这篇关于C ++如何导出函数以供C#调用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文