如何从C#导入非托管DLL文件(以.cpp编写) [英] How to import unmanaged DLL files (written in .cpp) from c#

查看:57
本文介绍了如何从C#导入非托管DLL文件(以.cpp编写)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以获取完整的代码来从C#导入非托管DLL文件吗.
如果可以通过头文件等获得整个代码,我将非常感激,这样我就可以通过VisualStudio 2005导入它了.
我的电子邮件ID为[已删除邮件地址]
只要考虑我的DLL文件说"x.dll",我想从用C#编写的代码中导入它.

谢谢与问候
Aasif Eqbal Aslam
[邮件地址已删除]
BE(ETRX)MUMBAI.

Can I get the whole code to import an unmanaged DLL file from C#.
I will be very thankful if I can get the whole code with header files etc.so that i could import it through VisualStudio 2005.
my email id is [mail address removed]
Just consider my DLL file is say "x.dll" and i want to import it from codes written in C#.

Thanks and Regards
Aasif Eqbal Aslam
[mail address removed]
B.E(ETRX)MUMBAI.

推荐答案

请查看文档:" :)
Please have a look at documentation: "Calling Native Functions from Managed Code".
:)


这篇关于如何从C#导入非托管DLL文件(以.cpp编写)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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