为什么Tdll.dll只能放在系统目录下,如果我放在Bin目录下应该怎么写(也不能写绝对路径!)
class MainClass
{
[DllImport(("Tdll.dll"), SetLastError = true,
CharSet = CharSet.Unicode, ExactSpelling = true,
CallingConvention = CallingConvention.StdCall)]
public static extern int MySum(int a, int b);
}
int Sum =MainClass.MySum(2, 3);
为什么Tdll.dll只能放在系统目录下,如果我放在Bin目录下应该怎么写(也不能写绝对路径!)