我怎样才能使用用C编写的DLL [英] How can I use a DLL written in C
问题描述
大家好,
我对这个DLL管理有点新意。
事实证明我需要使用此链接上的GNU Libmicrohttpd库https://www.gnu.org/software/libmicrohttpd/。
这个库我发现的问题是它是用C语言编写的,我正在做的项目是.Net,当我尝试在Visual Studio中添加dll时,它标记了以下错误:
我有什么可能将其添加到项目?感谢您的合作
Anuar de Jesus Raad Licona Ing。 de Desarrollo Asp.Net
您不会将DLL添加到项目中。 您可以使用P / Invoke来调用DLL的导出函数。 请参阅
如何:使用PInvoke从托管代码调用本机DLL 和
从托管代码调用本机功能
Hi everyone,
I'm a little new to this DLL management.
It turns out I need to use the GNU Libmicrohttpd library found at this link https://www.gnu.org/software/libmicrohttpd/.
This library the problem that I have found is that it is written in C and the project I am doing is in .Net and when I try to add the dll in Visual studio it marks the following error:
What possibility can I have to add it to the project? I appreciate your cooperation
Anuar de Jesus Raad Licona Ing. de Desarrollo Asp.Net
You don't add the DLL to the project. You would use P/Invoke to call the DLL's exported functions. See How to: Call Native DLLs from Managed Code Using PInvoke and Calling Native Functions from Managed Code
这篇关于我怎样才能使用用C编写的DLL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!