如何编译C#应用程序与C ++静态库? [英] How to compile C# application with C++ static library?

查看:294
本文介绍了如何编译C#应用程序与C ++静态库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我把我的C ++动态链接库为静态库只是为了获得更多的知识。
我的问题是如何使用.obj文件编译的C#前preSS / 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆