public class mydll
{
[DllImport("dll.DLL",EntryPoint="A")]
public static extern void A(string str1,string str2);
}
{
[DllImport("dll.DLL",EntryPoint="A")]
public static extern void A(string str1,string str2);
}
基本上in使用string就可以了,out则需要用stringbuilder。