想找一下动态调用dll的方法,之前我用的是
[DllImport("c-inter.dll", CallingConvention = CallingConvention.Cdecl)]
public static extern void comp(string argv);
但因为环境的需要,我需动态调用,及在使用时将该dll调入内存执行完毕就从内存中卸载下了。
哪位大侠有比较好的方法实现啊。
[DllImport("c-inter.dll", CallingConvention = CallingConvention.Cdecl)]
public static extern void comp(string argv);
但因为环境的需要,我需动态调用,及在使用时将该dll调入内存执行完毕就从内存中卸载下了。
哪位大侠有比较好的方法实现啊。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货