110,532
社区成员
发帖
与我相关
我的任务
分享
public class RegisterAndUnRegisterDll
{
public static string dllpath;
[DllImport("a.dll")]
public static extern int DllRegisterServer();
[DllImport(dllpath)]//加变量测试不通过。
public static extern int DllUnregisterServer();
}
[DllImport(dllpath)]//加变量测试不通过。
不支持变量的,那就吧DLL放到系统目录吧