从本机dll生成C#DLLImport声明

前端之家收集整理的这篇文章主要介绍了从本机dll生成C#DLLImport声明前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
你知道一个软件,它会自动生成C#代码(使用.cs中的[DllImport]属性)从本机DLL为了在C#代码中使用这个DLL?
结帐 P/Invoke Interop Assistant

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.

猜你在找的Windows相关文章