比如dll中有函数 int open(AnsiString str);
在c#中如何使用?
[DllImport("open.dll", SetLastError=true)]
internal static extern int Open(string str);
但是调用的时候总是报错,未将对象引用设置到对象实例,请问该如何处理?
在c#中如何使用?
[DllImport("open.dll", SetLastError=true)]
internal static extern int Open(string str);
但是调用的时候总是报错,未将对象引用设置到对象实例,请问该如何处理?
http://community.csdn.net/Expert/topic/4444/4444111.xml?temp=.0580408
就知道(: