求教关于调用非托管DLL的问题
现在碰到一个非托管的DLL,里面的API需不需要全部用到暂时不清楚。但是可能有百来个API在那里。难道要一个个DllImport吗?有没有什么简单的方法
新手在这里求指导 dll --------------------编程问答-------------------- "难道要一个个DllImport吗?"
是的 --------------------编程问答--------------------
--------------------编程问答-------------------- --------------------编程问答-------------------- 不知道有没有什么工具能自动生成DllImport --------------------编程问答-------------------- 看看这个好使不:
Managed, Native, and COM Interop Team
http://clrinterop.codeplex.com/
Project Description: P/Invoke Interop Assistant
In marshalling there are many attributes and rules for dealing with types. Understanding all of these can be a bit daunting. To improve the development experience, the P/Invoke Interop Assistant was created. It is a tool that conveniently converts C/C++ to managed P/Invoke signatures or verse visa. It even comes with a database of Win32 functions, data types, and constants, so the common task of adding a Win32 P/Invoke to your C# or Visual Basic source file is made very easy. There is a great marshalling article on MSDN Magazine website --------------------编程问答-------------------- --------------------编程问答--------------------
自己写个小程序呗来实现该功能 --------------------编程问答--------------------
下了用用,虽然没怎么明白这玩意想干嘛
但是我想的事情它都没完成 --------------------编程问答-------------------- 他幫你完成了很多事.. 你没有去了解而已
http://clrinterop.codeplex.com/releases/view/14120
--------------------编程问答--------------------
除了一个search模块我能用。。。
补充:.NET技术 , C#