C#调用VC编写的DLL,传入什么参数对应VC的LPCTSTR?
[DllImport("A.DLL")]
public static extern int fun(参数1, 参数2);
在用VC编写的这个A.DLL中
函数是int fun(LPCTSTR s1, LPCTSTR s2);
并且已经通过宏定义为Unicode
请问在C#中如何声明与调用?
public static extern int fun(string, string)?
public static extern int fun(cahr[], char[])?
好像都不好用啊