在C#中使用C文件 [英] use of c file in c#

查看:152
本文介绍了在C#中使用C文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


我想知道如何将c lib文件包装到c dll文件中.我没有代码
我只知道lib文件中使用的功能. < pre lang ="c ++"></pre>

在此先感谢

Saima

Hi ever one


I wana know how to wrap the c lib file into c dll file . i dont have the code
i just know the functions using in the lib file . <pre lang="c++"></pre>

Thanks in advance

Saima

推荐答案

您将需要使用PInvoke.
看看平台调用教程 [
You will need to use PInvoke.
Have a look at Platform Invoke Tutorial[^] for an explanation and some examples.


这篇关于在C#中使用C文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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