从本地的dll生成C#的DllImport声明 [英] Generate C# DLLImport declarations from a native dll

查看:160
本文介绍了从本地的dll生成C#的DllImport声明的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你知道软而为了使用在C#代码这个DLL自动生成的C#代码(与函数[DllImport]中的.cs属性)从本机DLL?

Do you know a soft which automatically generates C# code (with [DllImport] attributes in .cs) from a native DLL in order to use this DLL in a C# code?

推荐答案

结帐的的P / Invoke互操作助理

在编组,还有一堆
属性和规则。了解
所有这些属性和规则似乎是个
有点令人生畏。为了使
显影的工作更有效率和
。关于这些属性容易和
规则的P / Invoke互助理
出来。它是一个工具,帮助
开发商有效地从
C转换为托管的P / Invoke签名或
诗句签证。这是概念上$类似TLBIMP为COM Interop
B $ B,它根据非托管的一面,但$ B $的一些正式
说明管理代理条目
B点它适用于P /调用。该工具包是
一月在MSDN杂志
网站首次发布,2008.website一月,2008年

In marshalling, there are a bunch of attributes and rules. Understanding all those attributes and rules seem a bit daunting. In order to make developing work more efficient and easier on those attributes and the rules, P/Invoke Interop Assistant comes out. It is a toolkit that helps developers to efficiently convert from C to managed P/Invoke signatures or verse visa. This is conceptually similar to TlbImp for COM Interop which generates managed proxy entry points based on some formal description of the unmanaged side but it works for P/Invoke. The toolkit was first released on MSDN Magazine website in Jan, 2008.website in Jan, 2008.

这篇关于从本地的dll生成C#的DllImport声明的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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