如何在C#中调用Win32Dll中的类的公有函数?
see
http://www.pinvoke.net/
using System.Runtime.InteropServices;
[DllImport("user32.dll", EntryPoint="SendMessageA")]
private static extern int SendMessage (IntPtr hwnd, int wMsg, int wParam, int lParam);
void xx(){
SendMessage(...);
}
Win32Dll只有导出函数,没有类吧
是啊,Win32Dll只有导出函数,而且,对于C++的Dll里的类,C#是无法调用的。