如何使用 C++ 静态库编译 C# 应用程序? [英] How to compile C# application with C++ static library?
本文介绍了如何使用 C++ 静态库编译 C# 应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我把我的 C++ 动态链接库变成了静态库,只是为了获得更多的知识.我的问题是如何使用 .obj 文件通过 C# express/MS Visual Studio 编译这两个项目?
I turned my C++ Dynamic link library into Static library just to acquire more knowledge. My question is how can I use the .obj file to compile both projects with C# express/MS visual studio?
推荐答案
不,您不能直接从 C# 访问静态库.您必须使用 DLL.
No, you can't access static libraries directly from C#. You have to use a DLL.
这篇关于如何使用 C++ 静态库编译 C# 应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文