建議:
指示DLL的絕對或相對路徑,例如:
Const string PATH = "絕對或相對路徑";
[DllImport(PATH,CharSet = CharSet。自動)]
public extern static bool YourMedhod(string str);